Skip to content

Commit e4cfda2

Browse files
committed
test(scenarios): the built-consumer test requires only the JS, so an OS_SKIP_DTS build passes it
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016WV4cwgUKpQgCE3UWsA74d
1 parent e748dfb commit e4cfda2

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎packages/qa/scenarios/test/build/built-consumer.test.ts‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ import { afterAll, beforeAll, describe, expect, it } from 'vitest';
2727

2828
const PKG = resolve(dirname(fileURLToPath(import.meta.url)), '../..');
2929
const REPO = resolve(PKG, '../../..');
30-
const BUILT = ['score.js', 'score.cjs', 'score.d.ts', 'score.d.cts'].map((f) => join(PKG, 'dist', f));
30+
// The JS is what plain Node loads, so it is required. The declarations are
31+
// not built under `OS_SKIP_DTS` (CI's build sets it); when they are built,
32+
// the package's own `build` script already fails without them
33+
// (`check-dts-emitted.mjs`), so this test does not ask for them.
34+
const BUILT = ['score.js', 'score.cjs'].map((f) => join(PKG, 'dist', f));
3135

3236
const TSUP_PKG = createRequire(join(REPO, 'package.json')).resolve('tsup/package.json');
3337
const TSUP_BIN = join(dirname(TSUP_PKG), (JSON.parse(readFileSync(TSUP_PKG, 'utf8')) as { bin: { tsup: string } }).bin.tsup);

0 commit comments

Comments
 (0)