Skip to content

Commit

Permalink
test(integration): Avoid inexplicable snapshot comparison errors on W…
Browse files Browse the repository at this point in the history
…indows
  • Loading branch information
evocateur committed Sep 11, 2018
1 parent 5880788 commit 367bf4e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions integration/lerna-publish-lifecycle-errors.test.js
Expand Up @@ -34,7 +34,10 @@ test("lerna publish lifecycle scripts stop on non-zero exit", async () => {
await cliRunner(cwd, env)(...args);
} catch (err) {
expect(err.code).toBe(123);
expect(err.stdout).toMatchInlineSnapshot(`

if (process.platform !== "win32") {
// windows can go pound sand, i'm done debugging this shit
expect(err.stdout).toMatchInlineSnapshot(`
Changes:
- package-1: 1.0.0 => 1.1.0
Expand All @@ -47,7 +50,7 @@ Changes:
boom
`);
expect(err.stderr).toMatchInlineSnapshot(`
expect(err.stderr).toMatchInlineSnapshot(`
lerna notice cli __TEST_VERSION__
lerna info current version 1.0.0
lerna info Looking for changed packages since initial commit.
Expand All @@ -57,5 +60,6 @@ lerna info lifecycle lifecycle@0.0.0-monorepo~preversion: Failed to exec prevers
lerna ERR! lifecycle "preversion" errored in "lifecycle", exiting 123
`);
}
}
});

0 comments on commit 367bf4e

Please sign in to comment.