We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
currently we store multiple test cases together
it("transforms a to b", () => { expect( t(` a `) ).toBe( format(` b `) ); }); it("transforms c to d", () => { expect( t(` c `) ).toBe( format(` d `) ); });
... for example in packages/codemod/test/transforms/replaceReactUseEffect.test.ts
packages/codemod/test/transforms/replaceReactUseEffect.test.ts
make this more pretty by storing the test cases in separate files for example in packages/codemod/test/transforms/replaceReactUseEffect/
packages/codemod/test/transforms/replaceReactUseEffect/
transforms a to b.src.ts
a
transforms a to b.out.ts
b
make this more pretty
benefit: pretty git diff
git diff
similar issue BuilderIO/mitosis#856
compromise solutions with jest-snapshot ...
jest-snapshot
expect("a").toMatchSnapshot() // snapshot is stored in __snapshots__/*.snap expect("a").toMatchInlineSnapshot("b")
→ update snapshots with npx jest -u
npx jest -u
https://jestjs.io/docs/snapshot-testing
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
currently we store multiple test cases together
... for example in
packages/codemod/test/transforms/replaceReactUseEffect.test.ts
make this more pretty by storing the test cases in separate files
for example in
packages/codemod/test/transforms/replaceReactUseEffect/
transforms a to b.src.ts
transforms a to b.out.ts
benefit: pretty
git diff
similar issue BuilderIO/mitosis#856
compromise solutions with
jest-snapshot
...→ update snapshots with
npx jest -u
https://jestjs.io/docs/snapshot-testing
The text was updated successfully, but these errors were encountered: