jest-runner-prettier
Advanced tools
Comparing version 0.3.6 to 0.3.7
@@ -20,3 +20,3 @@ module.exports = { | ||
"yaml", | ||
"yml" | ||
"yml", | ||
], | ||
@@ -40,4 +40,4 @@ testMatch: [ | ||
"**/*.yaml", | ||
"**/*.yml" | ||
] | ||
"**/*.yml", | ||
], | ||
}; |
@@ -8,3 +8,3 @@ module.exports = { | ||
coverageReporters: ["json", "text"], | ||
displayName: "test:jest" | ||
displayName: "test", | ||
}, | ||
@@ -18,6 +18,11 @@ { | ||
"/src/__fixtures__/", | ||
"/coverage/" | ||
] | ||
} | ||
] | ||
"/coverage/", | ||
], | ||
}, | ||
{ | ||
runner: "eslint", | ||
displayName: "lint:eslint", | ||
testMatch: ["<rootDir>/**/*.js"], | ||
}, | ||
], | ||
}; |
{ | ||
"name": "jest-runner-prettier", | ||
"version": "0.3.6", | ||
"version": "0.3.7", | ||
"description": "A prettier runner for Jest", | ||
@@ -27,4 +27,4 @@ "main": "src/index.js", | ||
"cli-highlight": "^2.1.1", | ||
"create-jest-runner": "^0.5.3", | ||
"jest-diff": "^24.8.0" | ||
"create-jest-runner": "^0.8.0", | ||
"jest-diff": "^27.0.0" | ||
}, | ||
@@ -35,13 +35,22 @@ "peerDependencies": { | ||
"devDependencies": { | ||
"@commitlint/cli": "^8.1.0", | ||
"@commitlint/config-conventional": "^8.1.0", | ||
"@commitlint/cli": "^13.1.0", | ||
"@commitlint/config-conventional": "^13.1.0", | ||
"@stryker-mutator/core": "^2.0.2", | ||
"@stryker-mutator/javascript-mutator": "^2.0.2", | ||
"@stryker-mutator/jest-runner": "^2.0.2", | ||
"husky": "^4.0.0", | ||
"jest": "^24.8.0", | ||
"lint-staged": "^10.0.0", | ||
"prettier": "^1.18.2", | ||
"semantic-release": "^16.0.0" | ||
"@stryker-mutator/javascript-mutator": "^4.0.0", | ||
"@stryker-mutator/jest-runner": "^3.0.0", | ||
"eslint": "^6.8.0", | ||
"eslint-config-starstuff": "^1.4.5", | ||
"husky": "^7.0.0", | ||
"jest": "^27.0.4", | ||
"jest-runner-eslint": "^0.10.0", | ||
"lint-staged": "^11.0.0", | ||
"prettier": "^2.0.2", | ||
"semantic-release": "^17.0.1" | ||
}, | ||
"eslintConfig": { | ||
"extends": "starstuff/auto", | ||
"env": { | ||
"node": true | ||
} | ||
} | ||
} |
@@ -53,3 +53,3 @@ [![Build Status](https://travis-ci.org/keplersj/jest-runner-prettier.svg?branch=master)](https://travis-ci.org/keplersj/jest-runner-prettier) | ||
module.exports = { | ||
preset: "jest-runner-prettier" | ||
preset: "jest-runner-prettier", | ||
}; | ||
@@ -130,3 +130,3 @@ ``` | ||
"yaml", | ||
"yml" | ||
"yml", | ||
], | ||
@@ -150,4 +150,4 @@ testMatch: [ | ||
"**/*.yaml", | ||
"**/*.yml" | ||
] | ||
"**/*.yml", | ||
], | ||
}; | ||
@@ -154,0 +154,0 @@ ``` |
@@ -5,3 +5,3 @@ function HelloWorld({ | ||
silent = false, | ||
onMouseOver | ||
onMouseOver, | ||
}) { | ||
@@ -8,0 +8,0 @@ if (!greeting) { |
const { highlight } = require("cli-highlight"); | ||
const { pass, fail } = require("create-jest-runner"); | ||
const fs = require("fs"); | ||
const diff = require("jest-diff"); | ||
const { diff } = require("jest-diff"); | ||
const prettier = require("prettier"); | ||
@@ -11,5 +11,5 @@ | ||
return prettier.resolveConfig(testPath).then(config => { | ||
return prettier.resolveConfig(testPath).then((config) => { | ||
const prettierConfig = Object.assign({}, config, { | ||
filepath: testPath | ||
filepath: testPath, | ||
}); | ||
@@ -22,3 +22,3 @@ | ||
end: new Date(), | ||
test: { path: testPath } | ||
test: { path: testPath }, | ||
}); | ||
@@ -35,7 +35,7 @@ } | ||
errorMessage: diff(highlight(formatted), highlight(contents), { | ||
expand: false | ||
}) | ||
} | ||
expand: false, | ||
}), | ||
}, | ||
}); | ||
}); | ||
}; |
@@ -6,11 +6,12 @@ const path = require("path"); | ||
expect.addSnapshotSerializer({ | ||
print: (val, serialize) => { | ||
delete val.perfStats; | ||
delete val.testFilePath; | ||
val.testResults.forEach(result => { | ||
print: (value, serialize) => { | ||
delete value.perfStats; | ||
delete value.testFilePath; | ||
value.testResults.forEach((result) => { | ||
delete result.duration; | ||
}); | ||
return serialize(val); | ||
return serialize(value); | ||
}, | ||
test: val => val && val.perfStats && val.testFilePath && val.testResults | ||
test: (value) => | ||
value && value.perfStats && value.testFilePath && value.testResults, | ||
}); | ||
@@ -25,6 +26,4 @@ | ||
config: {}, | ||
globalConfig: {} | ||
}).then(result => { | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
globalConfig: {}, | ||
}).then((result) => expect(result).toMatchSnapshot()); | ||
}); | ||
@@ -38,6 +37,4 @@ }); | ||
config: {}, | ||
globalConfig: {} | ||
}).then(result => { | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
globalConfig: {}, | ||
}).then((result) => expect(result).toMatchSnapshot()); | ||
}); | ||
@@ -53,6 +50,4 @@ }); | ||
config: {}, | ||
globalConfig: {} | ||
}).then(result => { | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
globalConfig: {}, | ||
}).then((result) => expect(result).toMatchSnapshot()); | ||
}); | ||
@@ -66,6 +61,4 @@ }); | ||
config: {}, | ||
globalConfig: {} | ||
}).then(result => { | ||
expect(result).toMatchSnapshot(); | ||
}); | ||
globalConfig: {}, | ||
}).then((result) => expect(result).toMatchSnapshot()); | ||
}); | ||
@@ -72,0 +65,0 @@ }); |
const path = require("path"); | ||
module.exports = function(config) { | ||
module.exports = function (config) { | ||
config.set({ | ||
@@ -8,3 +8,3 @@ mutate: [ | ||
"!src/**/*@(.test|.spec|Spec).js", | ||
"!src/__fixtures__/**/*.ts" | ||
"!src/__fixtures__/**/*.ts", | ||
], | ||
@@ -21,5 +21,5 @@ mutator: "javascript", | ||
config: require(path.resolve(__dirname, "./jest.config.js")).projects[0], | ||
enableFindRelatedTests: true | ||
} | ||
enableFindRelatedTests: true, | ||
}, | ||
}); | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26084
17
13
247
+ Added@types/node@22.10.6(transitive)
+ Addedansi-styles@5.2.0(transitive)
+ Addedcreate-jest-runner@0.8.0(transitive)
+ Addeddiff-sequences@27.5.1(transitive)
+ Addedjest-diff@27.5.1(transitive)
+ Addedjest-get-type@27.5.1(transitive)
+ Addedjest-worker@27.5.1(transitive)
+ Addedpretty-format@27.5.1(transitive)
+ Addedreact-is@17.0.2(transitive)
+ Addedsupports-color@8.1.1(transitive)
+ Addedthroat@6.0.2(transitive)
+ Addedundici-types@6.20.0(transitive)
- Removed@jest/types@24.9.0(transitive)
- Removed@types/istanbul-lib-coverage@2.0.6(transitive)
- Removed@types/istanbul-lib-report@3.0.3(transitive)
- Removed@types/istanbul-reports@1.1.2(transitive)
- Removed@types/yargs@13.0.12(transitive)
- Removed@types/yargs-parser@21.0.3(transitive)
- Removedansi-regex@4.1.1(transitive)
- Removedansi-styles@3.2.1(transitive)
- Removedchalk@2.4.2(transitive)
- Removedcolor-convert@1.9.3(transitive)
- Removedcolor-name@1.1.3(transitive)
- Removedcreate-jest-runner@0.5.3(transitive)
- Removeddiff-sequences@24.9.0(transitive)
- Removedescape-string-regexp@1.0.5(transitive)
- Removedhas-flag@3.0.0(transitive)
- Removedjest-diff@24.9.0(transitive)
- Removedjest-get-type@24.9.0(transitive)
- Removedjest-worker@24.9.0(transitive)
- Removedpretty-format@24.9.0(transitive)
- Removedreact-is@16.13.1(transitive)
- Removedsupports-color@5.5.06.1.0(transitive)
- Removedthroat@4.1.0(transitive)
Updatedcreate-jest-runner@^0.8.0
Updatedjest-diff@^27.0.0