Skip to content

Commit

Permalink
chore: revert
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Sep 6, 2024
1 parent 0351528 commit 15f99c5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions nx.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"useLightClient": false,
"namedInputs": {
"sharedGlobals": [
"{workspaceRoot}/project/testing/**/*.ts",
"{workspaceRoot}/nx.json",
"{workspaceRoot}/package-lock.json",
"{workspaceRoot}/tsconfig.*.json",
Expand Down
5 changes: 5 additions & 0 deletions projects/testing/setup-jest/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ const {TextEncoder: TextEncoderMock, TextDecoder: TextDecoderMock} = require('no
global.TextEncoder = TextEncoderMock;
global.TextDecoder = TextDecoderMock;

Object.defineProperty(global.document, 'execCommand', {
writable: true,
value: () => {},
});

// you can also pass the mock implementation
// to jest.fn as an argument
(global.window as any).IntersectionObserver = jest.fn(() => ({
Expand Down

0 comments on commit 15f99c5

Please sign in to comment.