Skip to content

Commit ef030ea

Browse files
authored
Fix broken frontend tests (#432)
1 parent 4298e6d commit ef030ea

File tree

4 files changed

+23
-32
lines changed

4 files changed

+23
-32
lines changed

.github/workflows/test.yaml

+5-13
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,9 @@ jobs:
1212
go-version: 1.16
1313
- uses: actions/setup-node@v2
1414
with:
15-
node-version: '16'
15+
node-version: 'lts/*'
16+
cache: 'npm'
17+
cache-dependency-path: "gui/package-lock.json"
1618

1719
# Restore Go cache
1820
- uses: actions/cache@v2
@@ -26,18 +28,8 @@ jobs:
2628
restore-keys: |
2729
${{ runner.os }}-go-
2830
29-
# Restore NPM cache
30-
- name: Get npm cache directory
31-
id: npm-cache-dir
32-
run: |
33-
echo "::set-output name=dir::$(npm config get cache)"
34-
- uses: actions/cache@v2
35-
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
36-
with:
37-
path: ${{ steps.npm-cache-dir.outputs.dir }}
38-
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
39-
restore-keys: |
40-
${{ runner.os }}-node-
31+
- name: Upgrade npm
32+
run: npm i -g npm@latest
4133

4234
- name: Perform tests
4335
run: script/ci-test.sh

gui/package-lock.json

+15-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

gui/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
"svelte-loader": "^3.1.2",
4545
"svelte-preprocess": "^4.7.2",
4646
"ts-jest": "^27.0.4",
47-
"ts-node": "^10.2.1",
47+
"ts-node": "^10.3.0",
4848
"tslib": "^2.2.0",
4949
"typescript": "^4.3.2",
5050
"vite": "^2.4.2"

gui/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"paths": {
2020
"~/*": ["./*"]
2121
},
22+
"esModuleInterop": true,
23+
"moduleResolution": "Node",
2224
"noImplicitReturns": true,
2325
"noImplicitThis": true,
2426
"noImplicitAny": true

0 commit comments

Comments
 (0)