Skip to content

Commit 4f20e46

Browse files
committed
test: Add dual package hazard integration test
1 parent d968b22 commit 4f20e46

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

integrationTests/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ Each subdirectory represents a different environment/bundler:
1414
- `ts` - tests for supported Typescript versions
1515
- `webpack` - tests for Webpack
1616

17+
### Dual Package Hazard Tests
18+
19+
- `dual-vitest` - ensure that vitest loads only a single package.
20+
1721
### Verifying Development Mode Tests
1822

1923
Each subdirectory represents a different environment/bundler demonstrating enabling development mode via conditional exports or by explicitly importing `graphql/dev`:

resources/integration-test.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ describe('Integration Tests', () => {
1616
const archiveName = npm({ cwd: tmpDirPath(), quiet: true }).pack(distDir);
1717
fs.renameSync(tmpDirPath(archiveName), tmpDirPath('graphql.tgz'));
1818

19-
npm().run('build:deno');
19+
// npm().run('build:deno');
2020

2121
function testOnNodeProject(projectName: string) {
2222
const projectPath = tmpDirPath(projectName);
@@ -29,6 +29,9 @@ describe('Integration Tests', () => {
2929
}).timeout(120000);
3030
}
3131

32+
testOnNodeProject('dual-vitest');
33+
return;
34+
3235
testOnNodeProject('ts');
3336
testOnNodeProject('node');
3437
testOnNodeProject('webpack');

0 commit comments

Comments
 (0)