Skip to content

Commit

Permalink
Import matchers from subdirectory instead of root
Browse files Browse the repository at this point in the history
I'd love to replace the import from `dist/matchers` with a plain `matchers` by using the `exports` field in `package.json`. Unfortunately, neither Jest nor TypeScript currently support this.
  • Loading branch information
martijnwalraven committed Mar 2, 2021
1 parent 50a37ac commit 6ad7fe5
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion federation-integration-testsuite-js/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
export * from './matchers';
export * from './snapshotSerializers';
export * from './fixtures';
2 changes: 1 addition & 1 deletion federation-js/src/__tests__/testSetup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'apollo-federation-integration-testsuite';
import 'apollo-federation-integration-testsuite/dist/matchers';
2 changes: 1 addition & 1 deletion gateway-js/src/__tests__/testSetup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'apollo-federation-integration-testsuite';
import 'apollo-federation-integration-testsuite/dist/matchers';
2 changes: 1 addition & 1 deletion query-planner-js/src/__tests__/testSetup.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
import 'apollo-federation-integration-testsuite';
import 'apollo-federation-integration-testsuite/dist/matchers';

0 comments on commit 6ad7fe5

Please sign in to comment.