Skip to content

Commit

Permalink
Only enable mixedModules for edge config test
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Barber committed Sep 18, 2023
1 parent 6355382 commit 7e6466c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/integration.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const integrationDir = `${__dirname}${path.sep}integration`;
for (const integrationTest of readdirSync(integrationDir)) {
it(`should correctly trace and correctly execute ${integrationTest}`, async () => {
console.log('Tracing and executing ' + integrationTest);
const mixedModules = integrationTest === 'vercel-edge-config-esm.mjs';
const nftCache = {}
const fails = integrationTest.endsWith('failure.js');
const { fileList, reasons, warnings } = await nodeFileTrace([`${integrationDir}/${integrationTest}`], {
Expand All @@ -22,7 +23,7 @@ for (const integrationTest of readdirSync(integrationDir)) {
processCwd: integrationDir,
// ignore other integration tests
ignore: ['test/integration/**'],
mixedModules: true
mixedModules
});
// warnings.forEach(warning => console.warn(warning));
const randomTmpId = Math.random().toString().slice(2)
Expand Down Expand Up @@ -64,7 +65,7 @@ for (const integrationTest of readdirSync(integrationDir)) {
processCwd: integrationDir,
// ignore other integration tests
ignore: ['test/integration/**'],
mixedModules: true
mixedModules
});
expect([...cachedResult.fileList].sort()).toEqual([...fileList].sort())
}
Expand Down

0 comments on commit 7e6466c

Please sign in to comment.