Skip to content

Commit 0fc290b

Browse files
author
Kristján Oddsson
authored
Replacing Karma with Web Test Runner (#1546)
* Replace Karma with Web Test Runner * remove karma dependencies * remove `assertion-error` from commonjs plugin list * remove redundant mocha options * run browsers in ci * fix ci script * change name from chrome to chromium * install playwright dependencies * import chai from correct place * drop checking in safari
1 parent 54d3e6b commit 0fc290b

22 files changed

Lines changed: 2685 additions & 3600 deletions

.github/workflows/browsers.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# This workflow will do a clean install of node dependencies, build the source
2+
# code and run tests across different versions of browsers
3+
4+
name: Browsers CI
5+
6+
on:
7+
push:
8+
branches: [ main, 4.x.x, 5.x.x ]
9+
pull_request:
10+
branches: [ main, 4.x.x, 5.x.x ]
11+
12+
jobs:
13+
build:
14+
15+
runs-on: ubuntu-latest
16+
17+
strategy:
18+
matrix:
19+
browser-name:
20+
- chromium
21+
- firefox
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
- name: ${{ matrix.browser-name }}
26+
uses: actions/setup-node@v3
27+
- run: npm ci
28+
- run: npx playwright install --with-deps
29+
- run: npm run build --if-present
30+
- run: npm run test-chrome -- --browsers ${{ matrix.browser-name }}

lib/chai/interface/assert.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* MIT Licensed
55
*/
66

7+
import * as chai from '../../../index.js';
78
import {Assertion} from '../assertion.js';
89
import {flag, inspect} from '../utils/index.js';
910
import {AssertionError} from 'assertion-error';

lib/chai/interface/expect.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
* MIT Licensed
55
*/
66

7+
import * as chai from '../../../index.js';
78
import {Assertion} from '../assertion.js';
89
import {AssertionError} from 'assertion-error';
910

0 commit comments

Comments
 (0)