Skip to content

Commit 76c836e

Browse files
authored
chore: convert tasks directory to vitest (#32434)
change way verify module is exported due to issues interpreting module (thinks its an esm) rework scripts as we cannot run an empty mocha suite chore: fix snapshots and verify requires that are internal to the cypress project fix stubbing issues with fs-extra which is also used by request-progress under the hood fix issues where xvfb was stopping prematurely
1 parent 979f467 commit 76c836e

38 files changed

+3345
-2835
lines changed

.circleci/workflows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1797,7 +1797,7 @@ jobs:
17971797
# run type checking for each individual package
17981798
- run: yarn lerna run types
17991799
- sanitize-verify-and-store-mocha-results:
1800-
expectedResultCount: 20
1800+
expectedResultCount: 19
18011801

18021802
verify-release-readiness:
18031803
<<: *defaults

cli/.mocharc.js

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
module.exports = {
22
// hardcoding the spec file names as they will be converted 1 by 1 to vitest
3-
spec: [
4-
'test/lib/tasks/cache.spec.ts',
5-
'test/lib/tasks/dependency.spec.ts',
6-
'test/lib/tasks/download.spec.ts',
7-
'test/lib/tasks/install.spec.ts',
8-
'test/lib/tasks/state.spec.ts',
9-
'test/lib/tasks/unzip.spec.ts',
10-
'test/lib/tasks/verify.spec.ts',
11-
],
3+
spec: [],
124
timeout: 10000,
135
reporter: 'spec',
146
recursive: true

cli/__snapshots__/download.spec.ts.js

Lines changed: 0 additions & 66 deletions
This file was deleted.

0 commit comments

Comments
 (0)