File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 15
15
},
16
16
"scripts" : {
17
17
"pretest" : " npm run lint" ,
18
- "test" : " cross-env NODE_DEBUG=adonisjs:assembler c8 npm run vscode:test" ,
18
+ "test" : " cross-env NODE_DEBUG=chokidar:ts c8 npm run vscode:test" ,
19
19
"lint" : " eslint . --ext=.ts" ,
20
20
"clean" : " del-cli build" ,
21
21
"compile" : " npm run lint && npm run clean && tsc" ,
Original file line number Diff line number Diff line change @@ -23,9 +23,13 @@ test.group('Watcher', () => {
23
23
)
24
24
await fs . create ( 'foo.ts' , '' )
25
25
26
- const output = watch ( fs . baseUrl , ts , { } )
26
+ const output = watch ( fs . baseUrl , ts , { poll : true } )
27
27
cleanup ( ( ) => output ! . chokidar . close ( ) )
28
28
29
+ output ?. chokidar . on ( 'all' , ( event , path ) => {
30
+ console . log ( 'chokidar event' , { event, path } )
31
+ } )
32
+
29
33
output ! . watcher . on ( 'source:add' , ( file ) => {
30
34
assert . equal ( file . relativePath , 'bar.ts' )
31
35
done ( )
You can’t perform that action at this time.
0 commit comments