Skip to content

Commit

Permalink
AG-19767 fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maximtop committed Oct 13, 2023
1 parent 6ba4410 commit a3b3965
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/tswebextension/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ const config: Config = {
transform: {
'.+\\.(js|ts)': '@swc/jest',
},
transformIgnorePatterns: [
'node_modules/(?!(lodash-es)/)',
],
testEnvironment: 'jsdom',
testRegex: '(/__tests__/.*|\\.(test|spec))\\.(ts|tsx|js)$',
moduleFileExtensions: [
Expand Down
2 changes: 2 additions & 0 deletions packages/tswebextension/setupTests.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import browser from 'sinon-chrome';

browser.runtime.getManifest.returns({ version: '2', manifest_version: 2 });

jest.mock('webextension-polyfill', () => ({
...browser,
webRequest: {
Expand Down

0 comments on commit a3b3965

Please sign in to comment.