Skip to content

Commit ad51d62

Browse files
MidnightDesigniansu
authored andcommitted
Docs: remove note about TypeScript files requiring at least one export (#7260)
1 parent a95c573 commit ad51d62

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

docusaurus/docs/running-tests.md

-2
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ import Adapter from 'enzyme-adapter-react-16';
111111
configure({ adapter: new Adapter() });
112112
```
113113

114-
> Note: When using TypeScript with Babel, all your files need to have at least one export, otherwise you will get the error `Cannot compile namespaces when the '--isolatedModules' flag is provided.`. To fix this, you can add `export default undefined` to `src/setupTests.ts`.
115-
116114
> Note: Keep in mind that if you decide to "eject" before creating `src/setupTests.js`, the resulting `package.json` file won't contain any reference to it. [Read here](#initializing-test-environment) to learn how to add this after ejecting.
117115
118116
Now you can write a smoke test with it:

0 commit comments

Comments
 (0)