We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e731b33 commit 8c9283cCopy full SHA for 8c9283c
test/watch/main.js
@@ -0,0 +1 @@
1
+console.log('watch flag test');
test/watch/watch-flag.test.js
@@ -0,0 +1,23 @@
+'use strict';
2
+
3
+const { runWatch, isWindows } = require('../utils/test-utils');
4
5
+describe('--watch flag', () => {
6
+ if (isWindows) {
7
+ it('TODO: Fix on windows', () => {
8
+ expect(true).toBe(true);
9
+ });
10
+ return;
11
+ }
12
13
+ it('should watch for file changes', async () => {
14
+ const { stdout } = await runWatch({
15
+ testCase: __dirname,
16
+ args: ['--watch'],
17
+ setOutput: false,
18
+ outputKillStr: 'main',
19
20
21
+ expect(stdout).toContain('watching files for updates...');
22
23
+});
0 commit comments