Skip to content

Commit

Permalink
switch to d2l-test-runner (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
dlockhart authored Sep 16, 2024
1 parent 99eb3b1 commit bcd8fc0
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 12 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
9 changes: 4 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion test/d2l-fetch-simple-cache.test.js
Original file line number Diff line number Diff line change
@@ -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 = [
Expand Down

0 comments on commit bcd8fc0

Please sign in to comment.