Skip to content

Commit aa9b11d

Browse files
committed
Force exit after all tests are completed
This change should allow integration tests to run properly until lensapp/lens#7207 is fixed.
1 parent 6c83b0c commit aa9b11d

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
- lens-ref: HEAD
4848
node-version: 16
4949
script: tools/integration_test.sh
50-
- lens-ref: v6.4.0-beta.5
50+
- lens-ref: v6.4.0-beta.16
5151
node-version: 16
5252
script: tools/integration_test.sh
5353
- lens-ref: v6.4.0-alpha.4

tools/integration_test.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,18 @@ cp tools/extensions.tests.ts ${DIR}/lens/packages/open-lens/integration/__tests_
1111
TARGET_FILE="${DIR}/lens/packages/open-lens/package.json" node tools/remove_extra_lens_targets.js
1212

1313
pushd ${DIR}/lens
14-
yarn install --frozen-lockfile
15-
yarn run build:app
14+
if [ -f "package-lock.json" ]; then
15+
npm ci
16+
else
17+
npm install
18+
fi
19+
20+
npm run build:app
1621

1722
# If left present, the snap package will be mistaken for an obsolete Jest snapshot
18-
rm packages/open-lens/dist/*.snap
23+
rm -f packages/open-lens/dist/*.snap
1924

20-
cd packages/open-lens && npx jest -- integration/__tests__/extensions.tests.ts
25+
cd packages/open-lens && npx jest --forceExit -- integration/__tests__/extensions.tests.ts
2126
popd
2227

2328
rm -rf ${DIR}

0 commit comments

Comments
 (0)