-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
build(replay): Streamline tsconfig & jest config #6399
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
size-limit report 📦
|
import { handleFetch } from '../../../src/coreHandlers/handleFetch'; | ||
import { mockSdk } from './../..'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm just wondering about this path, wouldn't you normally have to specify the file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm yeah, should we make it ./../../index
? WDYT? (Guess this applies at all places) - maybe a bit more explicit...!
"noEmitOnError": false, | ||
"esModuleInterop": true, | ||
"resolveJsonModule": true, | ||
"allowJs": true, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Interesting, I thought we'd need at least allowJs
here because of the worker 🤔 but not complaining if we don't need it either 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the worker is just loaded as plain text, not as actual js, that's why it works probably!
For symmetry with the other packages, just use proper import paths.
0aa284b
to
8f6d90b
Compare
8f6d90b
to
60682a0
Compare
This PR goes some steps towards aligning tsconfig & jest config of replay with the rest of the packages.
@test
imports in replayIMHO the goal should be to also re-export the jest config from
/jest/jest.config.js
, but I ran into a bunch of issues with that - I think related to typescript, and jest.setup.ts 😬 But this should be OK as a first step.