Skip to content

Commit f4208c9

Browse files
authored
Remove Mocha & Upgrade Node (#1372)
* fix: upgrade packages * feat: yarnlock * fix: node version tests --------- Co-authored-by: Pablo <pjestradac@gmail.com>
1 parent 15d1eca commit f4208c9

6 files changed

Lines changed: 2387 additions & 1055 deletions

File tree

.github/workflows/diffgram_testing.yaml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,9 @@ jobs:
172172
Frontend-Unit-Tests:
173173
runs-on: ubuntu-latest
174174
steps:
175-
- uses: actions/setup-node@v2
175+
- uses: actions/setup-node@v3
176+
with:
177+
node-version: "16"
176178
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
177179
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
178180
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."
@@ -195,8 +197,8 @@ jobs:
195197
ref: ${{ github.ref_name }}
196198
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner."
197199
- run: cd frontend
198-
- uses: actions/setup-node@v2
200+
- uses: actions/setup-node@v3
199201
with:
200-
node-version: "14"
202+
node-version: "16"
201203
- run: yarn --cwd frontend install
202204
- run: yarn --cwd frontend run test:unit

.github/workflows/e2e_tests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ jobs:
8383
steps:
8484
- uses: actions/setup-node@v3
8585
with:
86-
node-version: 18
86+
node-version: 16
8787
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event."
8888
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!"
8989
- run: echo "🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}."

frontend/jest.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
module.exports = {
2+
moduleDirectories: ["node_modules", "<rootDir>"],
23
moduleFileExtensions: ["js", "ts", "json", "vue"],
34
transform: {
45
"^.+\\.js$": "babel-jest",
56
".*\\.(vue)$": "vue-jest",
67
"^.+\\.tsx?$": "ts-jest",
78
},
9+
810
transformIgnorePatterns: [
911
"node_modules/(?!(three"
1012
+ "|ol"

frontend/package.json

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@
111111
"@types/highlight.js": "9.12.4",
112112
"@types/jest": "^27.4.1",
113113
"@types/json-stable-stringify": "^1.0.34",
114-
"@types/mocha": "^9.1.0",
115114
"@types/uuid": "^9.0.0",
116115
"@typescript-eslint/eslint-plugin": "^2.34.0",
117116
"@typescript-eslint/parser": "^2.34.0",
@@ -165,8 +164,6 @@
165164
"jsdoc-vuejs": "^3.0.9",
166165
"jsdom": "^16.4.0",
167166
"jsdom-global": "^3.0.2",
168-
"mocha": "^6.2.3",
169-
"mochapack": "^1.1.15",
170167
"moxios": "^0.4.0",
171168
"nightwatch": "^1.5.1",
172169
"node-notifier": "^8.0.1",

frontend/tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"compilerOptions": {
33

44
},
5+
"esModuleInterop": true,
56
"include": [
67
"src/**/*",
78
"node_modules/vuetify/src/globals.d.ts"

0 commit comments

Comments
 (0)