Skip to content

Commit 80cca59

Browse files
committed
test: fix node14 legacy test
1 parent 2a2dd8e commit 80cca59

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,9 @@ jobs:
148148
with:
149149
name: build
150150
- run: npm install --no-package-lock
151-
# npm 6 (shipped with Node 14) ignores `overrides`, so pin chokidar manually
152-
- run: npm install --no-package-lock --no-save chokidar@^4
151+
# npm 6 (shipped with Node 14) ignores `overrides` and nests chokidar@5 under mocha;
152+
# replace it with the CJS-compatible chokidar@4
153+
- run: rm -rf node_modules/mocha/node_modules/chokidar && npm install --no-package-lock --no-save --prefix node_modules/mocha chokidar@^4
153154
- run: npm run test:legacy
154155

155156
smoke-os:

0 commit comments

Comments
 (0)