Skip to content

Commit

Permalink
Replacing Karma with Web Test Runner (#1546)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
koddsson committed Oct 23, 2023
1 parent 54d3e6b commit 0fc290b
Show file tree
Hide file tree
Showing 22 changed files with 2,685 additions and 3,600 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/browsers.yml
@@ -0,0 +1,30 @@
# This workflow will do a clean install of node dependencies, build the source
# code and run tests across different versions of browsers

name: Browsers CI

on:
push:
branches: [ main, 4.x.x, 5.x.x ]
pull_request:
branches: [ main, 4.x.x, 5.x.x ]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
browser-name:
- chromium
- firefox

steps:
- uses: actions/checkout@v4
- name: ${{ matrix.browser-name }}
uses: actions/setup-node@v3
- run: npm ci
- run: npx playwright install --with-deps
- run: npm run build --if-present
- run: npm run test-chrome -- --browsers ${{ matrix.browser-name }}
1 change: 1 addition & 0 deletions lib/chai/interface/assert.js
Expand Up @@ -4,6 +4,7 @@
* MIT Licensed
*/

import * as chai from '../../../index.js';
import {Assertion} from '../assertion.js';
import {flag, inspect} from '../utils/index.js';
import {AssertionError} from 'assertion-error';
Expand Down
1 change: 1 addition & 0 deletions lib/chai/interface/expect.js
Expand Up @@ -4,6 +4,7 @@
* MIT Licensed
*/

import * as chai from '../../../index.js';
import {Assertion} from '../assertion.js';
import {AssertionError} from 'assertion-error';

Expand Down

0 comments on commit 0fc290b

Please sign in to comment.