Skip to content

Commit

Permalink
Add lockdown events in other environments
Browse files Browse the repository at this point in the history
  • Loading branch information
david0xd committed Mar 9, 2023
1 parent bad541d commit 4e89e4e
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/snaps-execution-environments/coverage.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"branches": 77.6,
"functions": 91.4,
"lines": 86.34,
"statements": 86.42
"lines": 89.65,
"statements": 89.71
}
3 changes: 3 additions & 0 deletions packages/snaps-execution-environments/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ module.exports = deepmerge(baseConfig, {
coveragePathIgnorePatterns: [
'./src/index.ts',
'./src/iframe/index.ts',
'./src/node-process/index.ts',
'./src/node-thread/index.ts',
'./src/offscreen/index.ts',
'./src/common/test-utils',
],
coverageDirectory: './coverage/jest',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { executeLockdown } from '../common/lockdown/lockdown';
import { executeLockdownEvents } from '../common/lockdown/lockdown-events';
import { executeLockdownMore } from '../common/lockdown/lockdown-more';
import { ChildProcessSnapExecutor } from './ChildProcessSnapExecutor';

executeLockdownEvents();
executeLockdown();
executeLockdownMore();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { executeLockdown } from '../common/lockdown/lockdown';
import { executeLockdownEvents } from '../common/lockdown/lockdown-events';
import { executeLockdownMore } from '../common/lockdown/lockdown-more';
import { ThreadSnapExecutor } from './ThreadSnapExecutor';

executeLockdownEvents();
executeLockdown();
executeLockdownMore();

Expand Down
2 changes: 2 additions & 0 deletions packages/snaps-execution-environments/src/offscreen/index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import { BrowserRuntimePostMessageStream } from '@metamask/post-message-stream';

import { executeLockdown } from '../common/lockdown/lockdown';
import { executeLockdownEvents } from '../common/lockdown/lockdown-events';
import { executeLockdownMore } from '../common/lockdown/lockdown-more';
import { OffscreenSnapExecutor } from './OffscreenSnapExecutor';

executeLockdownEvents();
executeLockdown();
executeLockdownMore();

Expand Down

0 comments on commit 4e89e4e

Please sign in to comment.