Skip to content

Commit

Permalink
doc: updated npm script for focused tests
Browse files Browse the repository at this point in the history
  • Loading branch information
petersandor authored and JckXia committed Jul 31, 2022
1 parent 134961d commit efd6787
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions unit-test/README.md
Expand Up @@ -3,9 +3,9 @@

### Example:

- compile ad run only tests on objectwrap.cc and objectwrap.js
- compile and run only tests on objectwrap.cc and objectwrap.js
```
npm run unit --filter=objectwrap
npm run test --filter=objectwrap
```


Expand All @@ -15,7 +15,7 @@

- compile and run all tests files ending with reference -> function_reference.cc object_reference.cc reference.cc
```
npm run unit --filter=*reference
npm run test --filter=*reference
```

# Multiple filter conditions are also allowed
Expand All @@ -24,5 +24,5 @@

- compile and run all tests under folders threadsafe_function and typed_threadsafe_function and also the objectwrap.cc file
```
npm run unit --filter='*function objectwrap'
npm run test --filter='*function objectwrap'
```

0 comments on commit efd6787

Please sign in to comment.