diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4d7e337..7a9cd8e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,11 +11,8 @@ jobs: with: node-version-file: .nvmrc - name: Install dependencies - run: | - npm install - npm install @web/test-runner-playwright --no-save - npx playwright install --with-deps + run: npm install - name: Lint (JavaScript) run: npm run lint - - name: Unit Tests (cross-browser) - run: npx web-test-runner --files "./test/**/*.test.js" --node-resolve --playwright --browsers chromium firefox webkit + - name: Unit Tests + run: npm run test:unit diff --git a/package.json b/package.json index 620bea5..d302798 100644 --- a/package.json +++ b/package.json @@ -7,15 +7,14 @@ "license": "Apache-2.0", "scripts": { "lint": "eslint . --ext .js,.html", - "test": "npm run lint && npm run test:headless", - "test:headless": "web-test-runner --files \"./test/**/*.test.js\" --node-resolve" + "test": "npm run lint && npm run test:unit", + "test:unit": "d2l-test-runner" }, "devDependencies": { - "@open-wc/testing": "^4", + "@brightspace-ui/testing": "^1", "@web/dev-server": "^0.4", - "@web/test-runner": "^0.18", "eslint": "^8", - "eslint-config-brightspace": "^1.0", + "eslint-config-brightspace": "^1", "sinon": "^19" }, "version": "2.1.1", diff --git a/test/d2l-fetch-simple-cache.test.js b/test/d2l-fetch-simple-cache.test.js index a910e5d..eb462d5 100644 --- a/test/d2l-fetch-simple-cache.test.js +++ b/test/d2l-fetch-simple-cache.test.js @@ -1,5 +1,5 @@ import { fetchSimpleCache, reset } from '../src/index.js'; -import { expect } from '@open-wc/testing'; +import { expect } from '@brightspace-ui/testing'; import sinon from 'sinon'; const requestMethods = [