File tree Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Expand file tree Collapse file tree 6 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -232,7 +232,7 @@ jobs:
232
232
run : yarn build:ts
233
233
234
234
- name : Run simple tests
235
- run : docker run --rm -v $(pwd)/.cargo:/root/.cargo -v $(pwd):/node-rs -w /node-rs node:${{ matrix.node }}-alpine sh -c "./node_modules/.bin/lerna run test: simple --stream "
235
+ run : docker run --rm -v $(pwd)/.cargo:/root/.cargo -v $(pwd):/node-rs -w /node-rs node:${{ matrix.node }}-alpine sh -c "node ./scripts/ simple-tests.js "
236
236
237
237
publish :
238
238
name : Publish
Original file line number Diff line number Diff line change 24
24
"scripts" : {
25
25
"bench" : " cross-env NODE_ENV=production node benchmark/bcrypt.js" ,
26
26
"build" : " napi --release ./bcrypt" ,
27
- "build:debug" : " napi ./bcrypt.debug" ,
28
- "test:simple" : " node ./simple-test.js"
27
+ "build:debug" : " napi ./bcrypt.debug"
29
28
},
30
29
"bugs" : {
31
30
"url" : " https://github.com/Brooooooklyn/node-rs/issues"
Original file line number Diff line number Diff line change 24
24
"scripts" : {
25
25
"bench" : " cross-env NODE_ENV=production node benchmark/crc32.js" ,
26
26
"build" : " napi --release ./crc32" ,
27
- "build:debug" : " napi ./index" ,
28
- "test:simple" : " node ./simple-test.js"
27
+ "build:debug" : " napi ./index"
29
28
},
30
29
"bugs" : {
31
30
"url" : " https://github.com/Brooooooklyn/node-rs/issues"
Original file line number Diff line number Diff line change 1
1
const { crc32 } = require ( './index' )
2
2
3
- console . assert ( crc32 ( 'hello' ) === ' 907060870' )
3
+ console . assert ( crc32 ( 'hello' ) === 907060870 )
4
4
5
5
console . info ( 'crc32 simple test passed' )
Original file line number Diff line number Diff line change 24
24
"scripts" : {
25
25
"bench" : " cross-env NODE_ENV=production node benchmark/jieba.js" ,
26
26
"build" : " napi --release ./jieba" ,
27
- "build:debug" : " napi ./jieba" ,
28
- "test:simple" : " node ./simple-test.js"
27
+ "build:debug" : " napi ./jieba"
29
28
},
30
29
"bugs" : {
31
30
"url" : " https://github.com/Brooooooklyn/node-rs/issues"
Original file line number Diff line number Diff line change
1
+ const packages = require ( './packages' )
2
+
3
+ for ( const pkg of packages ) {
4
+ require ( `../packages/${ pkg } /simple-test.js` )
5
+ }
You can’t perform that action at this time.
0 commit comments