-
Notifications
You must be signed in to change notification settings - Fork 0
John conroy/jest #5
Conversation
transform: { | ||
'^.+\\.(ts)$': 'ts-jest', | ||
}, | ||
}; |
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.
All these PRs have a lot of bootstrapping: They all seems reasonable, but if I were to come back to it, I'd be hard-pressed to to say what the motivation for any particular choice is. If there are any corners that aren't just obviously the right thing to do, commenting in the PR or the file iteself could helpful. (something like: "Configuration from the tutorial at this url ..." / "Configuration based on this stackoverflow ..." / "Configuration generated by this init command...")
Use your judgement.
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.
Filed #7
Co-authored-by: John Conroy <john-conroy@users.noreply.github.com>
* Install rollup and rollup-plugin-typescript2 * Add rollup config * Add eslintignore and ignore dist * Add entries in package.json for esm and cjs and build script * Add include and exclude to tsconfig * Add example index.ts * John conroy/jest (#5) * Install jest, @types/jest and ts-jest * Add test scripts to package.json * Add jest config * Install eslint import plugins * Configure eslint import plugins * Configure eslint for jest * Add example file * Add example test * Add types to example file and test * Exclude tests in tsconfig * Add github actions ci (#6) Co-authored-by: John Conroy <john-conroy@users.noreply.github.com> Co-authored-by: John Conroy <john-conroy@users.noreply.github.com> Co-authored-by: John Conroy <john-conroy@users.noreply.github.com>
* Initialize npm and install eslint * Initialize eslint * Install typescript * Initialize typescript * Install prettier and plugins * Update eslint config * Add prettier yml * Add lint scripts * John conroy/rollup (#3) * Install rollup and rollup-plugin-typescript2 * Add rollup config * Add eslintignore and ignore dist * Add entries in package.json for esm and cjs and build script * Add include and exclude to tsconfig * Add example index.ts * John conroy/jest (#5) * Install jest, @types/jest and ts-jest * Add test scripts to package.json * Add jest config * Install eslint import plugins * Configure eslint import plugins * Configure eslint for jest * Add example file * Add example test * Add types to example file and test * Exclude tests in tsconfig * Add github actions ci (#6) Co-authored-by: John Conroy <john-conroy@users.noreply.github.com> Co-authored-by: John Conroy <john-conroy@users.noreply.github.com> Co-authored-by: John Conroy <john-conroy@users.noreply.github.com> * John conroy/husky lint staged (#2) * Install husky and lint-staged * Add husky and lint-staged Co-authored-by: John Conroy <john-conroy@users.noreply.github.com> Co-authored-by: John Conroy <john-conroy@users.noreply.github.com>
Setup jest, add eslint import resolver and add example test.