Skip to content

Commit

Permalink
test: Adds workaround for package exports (Jest will only support pac…
Browse files Browse the repository at this point in the history
…kage exports in version 28: jestjs/jest#11961)
  • Loading branch information
RomarQ committed Feb 9, 2022
1 parent 7fa8259 commit 5f92f3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
5 changes: 4 additions & 1 deletion package.json
Expand Up @@ -67,7 +67,10 @@
"<rootDir>/src/**/*.{spec,test}.{js,jsx,ts,tsx}"
],
"moduleNameMapper": {
"react-markdown": "<rootDir>/node_modules/react-markdown/react-markdown.min.js"
"react-markdown": "<rootDir>/node_modules/react-markdown/react-markdown.min.js",
"@tezwell/michelson-sdk/converter": "@tezwell/michelson-sdk/converter/index.cjs",
"@tezwell/michelson-sdk/literal": "@tezwell/michelson-sdk/literal.cjs",
"@tezwell/michelson-sdk/type": "@tezwell/michelson-sdk/type.cjs"
}
},
"eslintConfig": {
Expand Down
4 changes: 2 additions & 2 deletions src/blocks/literals/Unit.ts
@@ -1,9 +1,9 @@
import Blockly from 'blockly';

import MichelsonLiteral from '@tezwell/michelson-sdk/literal';
import MichelsonType from '@tezwell/michelson-sdk/type';
import SmartTSTypes from '@tezwell/smartts-sdk/core/type';
import SmartTSLiterals from '@tezwell/smartts-sdk/core/literal';
import MichelsonType from '@tezwell/michelson-sdk/type';
import MichelsonLiteral from '@tezwell/michelson-sdk/literal';
import SmartML from '../generators/SmartML';
import BlockKind from '../enums/BlockKind';
import Michelson from '../generators/Michelson';
Expand Down
3 changes: 1 addition & 2 deletions src/tests/routing.test.ts
Expand Up @@ -19,8 +19,7 @@ describe('Application Routing', () => {
await renderWithRouter({
path,
});

await waitFor(() => expect(document.title).toMatch(route.title));
await waitFor(async () => expect(document.title).toMatch(route.title));
});
});
});

0 comments on commit 5f92f3d

Please sign in to comment.