File tree 3 files changed +10
-2
lines changed
3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,11 @@ branches:
15
15
script :
16
16
# Test code
17
17
- npm run lint
18
- - npm test
18
+ - npm run build
19
+ - npm run test:microtask
20
+ - if [ "$TRAVIS_NODE_VERSION" != "10" ]; then
21
+ npm run test:immediate;
22
+ fi
19
23
# Test documentation
20
24
- npm run docs
21
25
# Test packaging
Original file line number Diff line number Diff line change 23
23
"build:commonjs" : " tsc --module commonjs && mv asynciterator.js asynciterator.cjs" ,
24
24
"build:types" : " tsc -d && rm asynciterator.js" ,
25
25
"prepare" : " npm run build" ,
26
- "test" : " npm run build:module && npm run mocha" ,
26
+ "test" : " npm run build:module && npm run test:microtask" ,
27
+ "test:microtask" : " npm run mocha" ,
28
+ "test:immediate" : " npm run mocha -- --require test/useSetImmediate.js" ,
27
29
"mocha" : " c8 mocha" ,
28
30
"lint" : " eslint asynciterator.ts test" ,
29
31
"docs" : " npm run build:module && npm run jsdoc" ,
Original file line number Diff line number Diff line change
1
+ import { setTaskScheduler } from '../asynciterator.mjs' ;
2
+ setTaskScheduler ( setImmediate ) ;
You can’t perform that action at this time.
0 commit comments