Skip to content

Commit

Permalink
Streamline nx config for the tests
Browse files Browse the repository at this point in the history
Running tests does not depend on the current package to have been built. The test.ts file imports the code
directly from index.{ts,js} itself. We do need to have built all of our dependencies, and we take the source
as an input.
  • Loading branch information
mfedderly committed Aug 6, 2024
1 parent e231564 commit 5c72178
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@
"default",
"{projectRoot}/test.ts",
"{projectRoot}/test/**",
"{projectRoot}/types.ts"
"{projectRoot}/types.ts",
"{projectRoot}/index.{js,ts}",
"{projectRoot}/lib/**"
],
"dependsOn": ["build"],
"dependsOn": ["^build"],
"cache": true
},
"last-checks": {
Expand Down

0 comments on commit 5c72178

Please sign in to comment.