From 9f8164e2b8d6ec3d8531cbbd8d2e94002fb8899f Mon Sep 17 00:00:00 2001 From: Michal Tusnio Date: Sun, 25 Aug 2024 00:40:10 +0100 Subject: [PATCH] Fix test path ignores --- .github/workflows/build.yaml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index b446af6..65f558b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -16,7 +16,7 @@ jobs: with: node-version: '20.x' - run: npm ci - - run: npm test + - run: npm test-unit browser-tests: runs-on: ubuntu-latest steps: diff --git a/package.json b/package.json index abfee75..2dfbd16 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,8 @@ "lint": "npx eslint --fix *.js js/options.js js/wordlist.js js/zhuyin.js", "csslint": "stylelint css/content.css css/wordlist.css", "zip": "zip -r dictionary.zip ./* -x '*.git*' -x add_jyutping.py -x package.json -x package-lock.json", - "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js --testPathIgnorePatterns='browser_tests/*'", + "test": "node --experimental-vm-modules node_modules/jest/bin/jest.js", + "test-unit": "node --experimental-vm-modules node_modules/jest/bin/jest.js --testPathIgnorePatterns='browser_tests/*'", "test-browser": "node --experimental-vm-modules node_modules/jest/bin/jest.js --testTimeout 10000 --testPathPattern='browser_tests/*'" } }