Skip to content

Commit

Permalink
Support running specific tests via npm run test
Browse files Browse the repository at this point in the history
Update the package.json/scripts/test entry to include a `--` suffix so that we can run specific tests via `npm run test`, for example `npm run test -- -t 'viem'`. Without this suffix, using `-- -t '...'` doesn't work, but `npm run test:node` does.
  • Loading branch information
snormore authored Oct 24, 2023
1 parent 0980c94 commit 2572be2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"updateSnapVersion": "npm view @xmtp/snap --json | jq '{\"version\": .version, \"package\": .name}' > ./src/snapInfo.json",
"test:setup": "./dev/up",
"test:teardown": "./dev/down",
"test": "npm run test:node",
"test": "npm run test:node --",
"test:node": "jest --no-cache --env='node' --testTimeout=30000",
"test:jsdom": "jest --no-cache --env='./jest.jsdom.env.cjs' --testTimeout=30000",
"test:cov": "jest --coverage --no-cache --runInBand",
Expand Down

0 comments on commit 2572be2

Please sign in to comment.