diff --git a/test/integration/dual-entry/index.test.ts b/test/integration/dual-entry/index.test.ts deleted file mode 100644 index 4cc4cb15..00000000 --- a/test/integration/dual-entry/index.test.ts +++ /dev/null @@ -1,21 +0,0 @@ -import fs from 'fs' -import { assertFilesContent, createIntegrationTest } from '../utils' - -// FIXME: should error if there're duplicate entries -describe.skip('integration tsconfig-override', () => { - it('should not generate js types paths if not specified', async () => { - await createIntegrationTest( - { - directory: __dirname, - }, - async ({ dir }) => { - assertFilesContent(dir, { - './dist/subpath/nested.js': 'subpath/nested', - './dist/subpath/nested.cjs': 'subpath/nested', - }) - const subpathTypes = await import(`${dir}/dist/index.js`) - expect(fs.existsSync(subpathTypes)).toBe(false) - }, - ) - }) -}) diff --git a/test/integration/duplicate-entries-partial-specified/index.test.ts b/test/integration/duplicate-entries-partial-specified/index.test.ts new file mode 100644 index 00000000..8d983f12 --- /dev/null +++ b/test/integration/duplicate-entries-partial-specified/index.test.ts @@ -0,0 +1,17 @@ +import { createIntegrationTest, getFileNamesFromDirectory } from '../utils' + +describe('integration duplicate-entries-partial-specified', () => { + it('should not generate js types paths if not specified', async () => { + await createIntegrationTest( + { + directory: __dirname, + }, + async ({ distDir }) => { + expect(await getFileNamesFromDirectory(distDir)).toEqual([ + 'a.js', + 'a.workerd.js', + ]) + }, + ) + }) +}) diff --git a/test/integration/dual-entry/package.json b/test/integration/duplicate-entries-partial-specified/package.json similarity index 100% rename from test/integration/dual-entry/package.json rename to test/integration/duplicate-entries-partial-specified/package.json diff --git a/test/integration/dual-entry/src/a.ts b/test/integration/duplicate-entries-partial-specified/src/a.ts similarity index 100% rename from test/integration/dual-entry/src/a.ts rename to test/integration/duplicate-entries-partial-specified/src/a.ts diff --git a/test/integration/dual-entry/src/a.workerd.ts b/test/integration/duplicate-entries-partial-specified/src/a.workerd.ts similarity index 100% rename from test/integration/dual-entry/src/a.workerd.ts rename to test/integration/duplicate-entries-partial-specified/src/a.workerd.ts diff --git a/test/integration/dual-entry/src/a/shared.ts b/test/integration/duplicate-entries-partial-specified/src/a/shared.ts similarity index 100% rename from test/integration/dual-entry/src/a/shared.ts rename to test/integration/duplicate-entries-partial-specified/src/a/shared.ts