Skip to content
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

Local changes on fresh clone install #8684

Closed
aduth opened this issue Aug 7, 2018 · 1 comment · Fixed by #8700
Closed

Local changes on fresh clone install #8684

aduth opened this issue Aug 7, 2018 · 1 comment · Fixed by #8700
Assignees
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Milestone

Comments

@aduth
Copy link
Member

aduth commented Aug 7, 2018

Regressed in #8596

To Reproduce

  1. git clone https://github.com/WordPress/gutenberg.git
  2. cd gutenberg
  3. npm install
  4. npm test
  5. Observe local changes via git status

In other branches, I've been seeing errors on a failing snapshot test for DefaultBlockAppender . Not certain yet whether this is related. Will report back.

diff --git a/package-lock.json b/package-lock.json
index 27462f010..a0e677a15 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -3640,7 +3640,7 @@
 				"@wordpress/jest-preset-default": "file:packages/jest-preset-default",
 				"@wordpress/npm-package-json-lint-config": "file:packages/npm-package-json-lint-config",
 				"cross-spawn": "^5.1.0",
-				"jest": "^23.3.0",
+				"jest": "^23.4.2",
 				"npm-package-json-lint": "^3.3.0",
 				"read-pkg-up": "^1.0.1",
 				"resolve-bin": "^0.4.0"

Expected behavior

  1. No local changes
@aduth aduth added Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. labels Aug 7, 2018
@aduth aduth added this to the 3.5 milestone Aug 7, 2018
@aduth aduth assigned gziolo and ntwb Aug 7, 2018
@aduth aduth changed the title Local changes, failing tests on fresh clone install Local changes on fresh clone install Aug 7, 2018
@ntwb ntwb mentioned this issue Aug 8, 2018
4 tasks
@ntwb ntwb closed this as completed in #8700 Aug 8, 2018
ntwb added a commit that referenced this issue Aug 8, 2018
## Description

Fixes #8684

## How has this been tested?
<!-- Please describe in detail how you tested your changes. -->
<!-- Include details of your testing environment, tests ran to see how -->
<!-- your change affects other areas of the code, etc. -->

• Ensured my local Git repo was up to date with no changed files.
```
❯ git status
On branch master
Your branch is up to date with 'origin/master'.

nothing to commit, working tree clean
```

• Removed my local `node_modules` folder:
```
❯ rm -i -rf node_modules/
```

• Ran `npm install`
```
❯ npm install
```
• Ran `git status`
```
❯ git status
On branch master
Your branch is up to date with 'origin/master'.

Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   package-lock.json

no changes added to commit (use "git add" and/or "git commit -a")
```

• The `package-lock.json` diff is the same as @aduth notes in #8684 

• Ran `npm test`
```
Test Suites: 1 skipped, 244 passed, 244 of 245 total
Tests:       1 skipped, 2081 passed, 2082 total
Snapshots:   74 passed, 74 total
Time:        72.278s
Ran all test suites.
```


## Screenshots <!-- if applicable -->

## Types of changes
<!-- What types of changes does your code introduce?  -->
<!-- Bug fix (non-breaking change which fixes an issue) -->
<!-- New feature (non-breaking change which adds functionality) -->
<!-- Breaking change (fix or feature that would cause existing functionality to not work as expected) -->

Build Tools 

## Checklist:
- [x] My code is tested.
- [x] My code follows the WordPress code style. <!-- Check code: `npm run lint`, Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/javascript/ -->
- [x] My code follows the accessibility standards. <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/coding-standards/accessibility-coding-standards/ -->
- [x] My code has proper inline documentation. <!-- Guidelines: https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/javascript/ -->
@gziolo
Copy link
Member

gziolo commented Aug 8, 2018

It was sorted out with #8660 at last :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Framework Issues related to broader framework topics, especially as it relates to javascript [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants