Skip to content

Commit

Permalink
build(deps): Replace @esm-bundle/chai with chai and sinon-chai at the…
Browse files Browse the repository at this point in the history
…ir latest versions (#2335)

- Due to change in imports, we need to update all the test files as well to use straight chai.
- We can also remove the chai types now that we're using the real version that ships with them.
  • Loading branch information
melink14 authored Dec 19, 2024
1 parent 2f9ba73 commit 5d75881
Show file tree
Hide file tree
Showing 8 changed files with 80 additions and 138 deletions.
2 changes: 1 addition & 1 deletion extension/test/background_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Config } from '../configuration';
import { RcxMain } from '../rikaichan';
import { expect, use } from '@esm-bundle/chai';
import { expect, use } from 'chai';
import chrome from 'sinon-chrome';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
Expand Down
2 changes: 1 addition & 1 deletion extension/test/data_test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Config } from '../configuration';
import { RcxDict } from '../data';
import { expect, use } from '@esm-bundle/chai';
import { expect, use } from 'chai';
import chaiLike from 'chai-like';
import chaiThings from 'chai-things';
import sinonChrome from 'sinon-chrome';
Expand Down
2 changes: 1 addition & 1 deletion extension/test/docs-annotate-canvas_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect } from '@esm-bundle/chai';
import { expect } from 'chai';

declare global {
interface Window {
Expand Down
2 changes: 1 addition & 1 deletion extension/test/e2e_visual_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Config } from '../configuration';
import { TestOnlyRcxContent } from '../rikaicontent';
import { resetMouse, sendKeys, sendMouse } from '@web/test-runner-commands';
import { stubbedChrome as sinonChrome } from './chrome_stubs';
import { use } from '@esm-bundle/chai';
import { use } from 'chai';
import { visualDiff } from '@web/test-runner-visual-regression';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
Expand Down
2 changes: 1 addition & 1 deletion extension/test/parse-word-dict-entry_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { expect, use } from '@esm-bundle/chai';
import { expect, use } from 'chai';
import { parseWordDictEntry } from '../parse-word-dict-entry';
import sinon from 'sinon';
import sinonChai from 'sinon-chai';
Expand Down
2 changes: 1 addition & 1 deletion extension/test/rikaicontent_test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Config } from '../configuration';
import { DictEntryData } from '../data';
import { TestOnlyRcxContent } from '../rikaicontent';
import { expect, use } from '@esm-bundle/chai';
import { expect, use } from 'chai';
import { html, render } from 'lit-html';
import chrome from 'sinon-chrome';
import simulant from 'simulant';
Expand Down
Loading

0 comments on commit 5d75881

Please sign in to comment.