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

build(jest): Upgrade Jest to latest version, 22.4.3 #5569

Merged
merged 2 commits into from
Mar 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion __tests__/__snapshots__/integration.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`yarnrc-args 1`] = `
exports[`yarnrc arguments: yarnrc-args 1`] = `
"{\\"type\\":\\"info\\",\\"data\\":\\"No lockfile found.\\"}
{\\"type\\":\\"step\\",\\"data\\":{\\"message\\":\\"Resolving packages\\",\\"current\\":1,\\"total\\":4}}
{\\"type\\":\\"step\\",\\"data\\":{\\"message\\":\\"Fetching packages\\",\\"current\\":2,\\"total\\":4}}
Expand Down
76 changes: 38 additions & 38 deletions __tests__/__snapshots__/normalize-manifest.js.snap
Original file line number Diff line number Diff line change
@@ -1,209 +1,209 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`author object normalize 1`] = `
exports[`author object normalize: author object normalize 1`] = `
Array [
"No license field",
]
`;

exports[`author string 1`] = `
exports[`author string: author string 1`] = `
Array [
"No license field",
]
`;

exports[`authors file to contributors 1`] = `
exports[`authors file to contributors: authors file to contributors 1`] = `
Array [
"No license field",
]
`;

exports[`bin string 1`] = `
exports[`bin string: bin string 1`] = `
Array [
"foo: No license field",
]
`;

exports[`binding.gyp scripts.install 1`] = `
exports[`binding.gyp scripts.install: binding.gyp scripts.install 1`] = `
Array [
"No license field",
]
`;

exports[`bugs string 1`] = `
exports[`bugs string: bugs string 1`] = `
Array [
"No license field",
]
`;

exports[`bundledDependencies alias 1`] = `
exports[`bundledDependencies alias: bundledDependencies alias 1`] = `
Array [
"No license field",
]
`;

exports[`clean version 1`] = `
exports[`clean version with v: clean version with v 1`] = `
Array [
"No license field",
]
`;

exports[`clean version with v 1`] = `
exports[`clean version: clean version 1`] = `
Array [
"No license field",
]
`;

exports[`contributors array expand 1`] = `
exports[`contributors array expand: contributors array expand 1`] = `
Array [
"No license field",
]
`;

exports[`dedupe all trivial dependencies 1`] = `
exports[`dedupe all trivial dependencies: dedupe all trivial dependencies 1`] = `
Array [
"No license field",
]
`;

exports[`dedupe dependencies 1`] = `Array []`;

exports[`dedupe dependencies root 1`] = `
exports[`dedupe dependencies root: dedupe dependencies root 1`] = `
Array [
"No license field",
"\\"dependencies\\" has dependency \\"foobar\\" with range \\"2.0.0\\" that collides with a dependency in \\"devDependencies\\" of the same name with version \\"1.0.0\\"",
]
`;

exports[`dedupe optionalDependencies 1`] = `Array []`;
exports[`dedupe dependencies: dedupe dependencies 1`] = `Array []`;

exports[`dedupe optionalDependencies root 1`] = `
exports[`dedupe optionalDependencies root: dedupe optionalDependencies root 1`] = `
Array [
"No license field",
"\\"optionalDependencies\\" has dependency \\"foobar\\" with range \\"1.0.0\\" that collides with a dependency in \\"dependencies\\" of the same name with version \\"2.0.0\\"",
]
`;

exports[`dedupe single trivial dependency 1`] = `
exports[`dedupe optionalDependencies: dedupe optionalDependencies 1`] = `Array []`;

exports[`dedupe single trivial dependency: dedupe single trivial dependency 1`] = `
Array [
"No license field",
]
`;

exports[`engines array 1`] = `
exports[`engines array: engines array 1`] = `
Array [
"No license field",
]
`;

exports[`explode directories.bin 1`] = `
exports[`explode directories.bin: explode directories.bin 1`] = `
Array [
"No license field",
]
`;

exports[`explode directories.man 1`] = `
exports[`explode directories.man: explode directories.man 1`] = `
Array [
"No license field",
]
`;

exports[`extract description 1`] = `
exports[`extract description: extract description 1`] = `
Array [
"No license field",
]
`;

exports[`homepage string 1`] = `
exports[`homepage string: homepage string 1`] = `
Array [
"No license field",
]
`;

exports[`hosted git repository url 1`] = `
exports[`hosted git repository url: hosted git repository url 1`] = `
Array [
"No license field",
]
`;

exports[`keywords string 1`] = `
exports[`keywords string: keywords string 1`] = `
Array [
"No license field",
]
`;

exports[`license warnings should not be thrown with global commands 1`] = `Array []`;
exports[`license warnings should not be thrown with global commands: license warnings should not be thrown with global commands 1`] = `Array []`;

exports[`maintainers array expand 1`] = `
exports[`maintainers array expand: maintainers array expand 1`] = `
Array [
"No license field",
]
`;

exports[`man string 1`] = `
exports[`man string: man string 1`] = `
Array [
"No license field",
]
`;

exports[`name 1`] = `
exports[`name: name 1`] = `
Array [
"foobar: No license field",
]
`;

exports[`readme 1`] = `
exports[`readme: readme 1`] = `
Array [
"No license field",
]
`;

exports[`repository string 1`] = `
exports[`repository string: repository string 1`] = `
Array [
"No license field",
]
`;

exports[`scoped bin string 1`] = `
exports[`scoped bin string: scoped bin string 1`] = `
Array [
"@scope/foo: No license field",
]
`;

exports[`server scripts.start 1`] = `
exports[`server scripts.start: server scripts.start 1`] = `
Array [
"No license field",
]
`;

exports[`valid license 1`] = `Array []`;
exports[`valid license: valid license 1`] = `Array []`;

exports[`version 1`] = `
exports[`version: version 1`] = `
Array [
"No license field",
]
`;

exports[`warn builtin module collision 1`] = `
exports[`warn builtin module collision: warn builtin module collision 1`] = `
Array [
"fs: \\"fs\\" is also the name of a node core module",
"fs: No license field",
]
`;

exports[`warn empty string invalid license 1`] = `
exports[`warn empty string invalid license: warn empty string invalid license 1`] = `
Array [
"License should be a valid SPDX license expression",
]
`;

exports[`warn invalid license 1`] = `
exports[`warn invalid license: warn invalid license 1`] = `
Array [
"License should be a valid SPDX license expression",
]
`;

exports[`warn typo 1`] = `
exports[`warn typo: warn typo 1`] = `
Array [
"Potential typo \\"dependancies\\", did you mean \\"dependencies\\"?",
"No license field",
Expand Down
2 changes: 1 addition & 1 deletion __tests__/commands/__snapshots__/info.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`left-pad readme 1`] = `
exports[`without arguments and in directory containing a valid package file: left-pad readme 1`] = `
"## left-pad

String left pad
Expand Down
10 changes: 5 additions & 5 deletions __tests__/commands/__snapshots__/init.js.snap
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`init-config 1`] = `
exports[`init should create package.json on current cwd: init-config 1`] = `
Object {
"author": "Kittens McKitty <[email protected]> (https://yarnpkg.com)",
"license": "BSD",
Expand All @@ -11,7 +11,7 @@ Object {
}
`;

exports[`init-github 1`] = `
exports[`init should create package.json on current cwd: init-github 1`] = `
Object {
"license": "MIT",
"main": "index.js",
Expand All @@ -22,7 +22,7 @@ Object {
}
`;

exports[`init-private-empty 1`] = `
exports[`init should create package.json on current cwd: init-private-empty 1`] = `
Object {
"license": "MIT",
"main": "index.js",
Expand All @@ -31,7 +31,7 @@ Object {
}
`;

exports[`init-yes 1`] = `
exports[`init should create package.json on current cwd: init-yes 1`] = `
Object {
"license": "MIT",
"main": "index.js",
Expand All @@ -40,7 +40,7 @@ Object {
}
`;

exports[`init-yes-private 1`] = `
exports[`init should create package.json on current cwd: init-yes-private 1`] = `
Object {
"license": "MIT",
"main": "index.js",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`install-file-as-default-no-semver 1`] = `
exports[`install should not hoist packages above their peer dependencies: install-file-as-default-no-semver 1`] = `
"{
\\"author\\": \\"AJ ONeal <[email protected]> (http://coolaj86.info)\\",
\\"name\\": \\"foo\\",
Expand Down
Binary file not shown.
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
"gulp-sourcemaps": "^2.2.0",
"gulp-util": "^3.0.7",
"gulp-watch": "^5.0.0",
"jest": "^21.2.1",
"jest": "^22.4.3",
"jsinspect": "^0.12.6",
"minimatch": "^3.0.4",
"mock-stdin": "^0.3.0",
Expand Down Expand Up @@ -129,13 +129,13 @@
"testPathIgnorePatterns": [
"__tests__/(fixtures|__mocks__)/",
"updates/",
"/_(temp|mock|install|init|helpers).js$",
"/packages/pkg-tests"
"_(temp|mock|install|init|helpers).js$",
"packages/pkg-tests"
]
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}
Loading