-
Notifications
You must be signed in to change notification settings - Fork 152
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
Using jest projects config to run tests #135
Conversation
19d99b4
to
7e2d7ca
Compare
The longer I consider the package-lock.json trickery to workaround that jest issue, the less comfortable I am with it - it's just too easy for someone to accidentally revert the workaround. Can you link the Jest issue in question? If we think they're likely to fix it soonish in a patch release, I kind of lean towards waiting for that before merging this. |
7e2d7ca
to
e9fb864
Compare
jestjs/jest#6865 updating deprecated property remove tsconfig.jest.json ignore d.ts files form coverage This reverts commit 7875345cadaee70b4f2cb2c2d5d3d8554fe0354f.
e9fb864
to
685153e
Compare
@@ -51,7 +51,7 @@ async function verifyExtensionIsBuilt(extensionPath: string): Promise<void> { | |||
|
|||
async function launchNewBrowser(): Promise<Puppeteer.Browser> { | |||
// only unpacked extension paths are supported | |||
const extensionPath = `${process.cwd()}/drop/dev/extension/`; | |||
const extensionPath = `${(global as any).rootDir}/drop/dev/extension/`; |
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 had to make this change to support running "jest" from any directory
}); | ||
|
||
function verifySnapshot(props: ReportCheckListProps): void { | ||
expect(shallow(<ReportCheckList {...props} />).getElement()).toMatchSnapshot(); |
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.
after jest update, shallow matching snapshot, doesnt output anything. So, i had to use getElement
2c3dcc7
to
93559d9
Compare
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.
One more readme update
93559d9
to
e376a4f
Compare
No description provided.