Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mattrunyon committed Nov 6, 2024
1 parent c618a19 commit d5b7f9d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions __mocks__/@astral-sh/ruff-wasm-web.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
const init = jest.fn();
export const Workspace = jest.fn();
export default init;
4 changes: 4 additions & 0 deletions jest.config.base.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ module.exports = {
),
// Handle monaco worker files
'\\.worker.*$': 'identity-obj-proxy',
'^@astral-sh/ruff-wasm-web$': path.join(
__dirname,
'./__mocks__/@astral-sh/ruff-wasm-web.js'
),
// Handle pouchdb modules
'^pouchdb-browser$': path.join(
__dirname,
Expand Down

0 comments on commit d5b7f9d

Please sign in to comment.