Skip to content

Commit

Permalink
use d2l-test-runner (#55)
Browse files Browse the repository at this point in the history
  • Loading branch information
bearfriend authored Sep 10, 2024
1 parent ea01bed commit 50ee8d9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ jobs:
- 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
run: npm run test:unit
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,12 @@
"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",
"sinon": "^18"
Expand Down
2 changes: 1 addition & 1 deletion test/d2l-fetch-dedupe.test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { fetchDedupe, reset } from '../src/index.js';
import { expect } from '@open-wc/testing';
import { expect } from '@brightspace-ui/testing';
import sinon from 'sinon';

const invalidRequestInputs = [
Expand Down

0 comments on commit 50ee8d9

Please sign in to comment.