Skip to content

Commit

Permalink
test: optimize pluginLoader initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipoliko committed Aug 29, 2024
1 parent 8e96033 commit 313ebc7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions jest.config.itl.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,5 @@ module.exports = {
moduleNameMapper: {
'app/main': FALLBACK_APP_MAIN_PATH,
},
setupFiles: ['<rootDir>/src/main.ts'], // To ensure that pluginLoader is called
};
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { renderWithContext, waitFor } from '@ima/testing-library';

import { Iframe, Visibility } from '../../main';
import Visibility from '../../Visibility';
import { Iframe } from '../Iframe';

describe('Iframe', () => {
it('should render with noscript tag by default', async () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/plugin-atoms/src/components/__tests__/ImageSpec.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import '../../main'; // To ensure that pluginLoader is called

import { renderWithContext } from '@ima/testing-library';

import { Image } from '../Image';
Expand Down

0 comments on commit 313ebc7

Please sign in to comment.