Skip to content

Fix tests on windows - #3785

Merged
suchipi merged 1 commit into
masterfrom
unknown repository
Jan 22, 2018
Merged

suchipi merged 1 commit into
masterfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jan 22, 2018

Copy link
Copy Markdown

This PR fixes a few failing tests on Windows. There's one remaining test, a snapshot test, that fails, and I'm not sure how to fix it.

FAIL  tests_integration\__tests__\debug-check.js
  show diff for 2+ error files with --debug-check › (stderr)

    expect(value).toMatchSnapshot()

    Received value does not match stored snapshot 1.

    - Snapshot
    + Received

    @@ -17,14 +17,18 @@
      [error] ===================================================================
      [error] ---
      [error] +++
      [error] @@ -1,3 +1,3 @@
      [error]  const a = {
    + [error]
      [error] -    'a': 1
    + [error]
      [error] +  a: 1
    + [error]
      [error]  };
      [error]
    + [error]
      [error] b.js: ast(input) !== ast(prettier(input))
      [error] Index:
      [error] ===================================================================
      [error] ---
      [error] +++
    @@ -42,10 +46,14 @@
      [error] ===================================================================
      [error] ---
      [error] +++
      [error] @@ -1,3 +1,3 @@
      [error]  const b = {
    + [error]
      [error] -    'b': 2
    + [error]
      [error] +  b: 2
    + [error]
      [error]  };
      [error]
    + [error]
      "

      at Object.test (tests_integration/runPrettier.js:122:25)
          at new Promise (<anonymous>)
          at <anonymous>
      at process._tickCallback (internal/process/next_tick.js:188:7)

@josephfrazier josephfrazier left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Maybe we should consider using AppVeyor for Windows CI.

@suchipi
suchipi merged commit ea5bfb4 into prettier:master Jan 22, 2018
@ghost
ghost deleted the fix-tests-windows branch January 22, 2018 18:23
@lock lock Bot added the locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting. label Jan 18, 2019
@lock lock Bot locked as resolved and limited conversation to collaborators Jan 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

locked-due-to-inactivity Please open a new issue and fill out the template instead of commenting.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants