create-jest-runner
Advanced tools
Comparing version 0.6.0 to 0.7.0
## master | ||
## 0.7.0 | ||
- Update dependencies and drop support for Node 8 | ||
## 0.6.0 | ||
- Update dependencies and drop Node 6 | ||
## 0.5.0 | ||
@@ -7,7 +15,7 @@ | ||
* Add support for the new test status `todo`, introduced in Jest 24 ([#14](https://github.com/jest-community/create-jest-runner/pull/14)) | ||
- Add support for the new test status `todo`, introduced in Jest 24 ([#14](https://github.com/jest-community/create-jest-runner/pull/14)) | ||
### Chore | ||
* Upgrade to `jest-worker@24` ([#14](https://github.com/jest-community/create-jest-runner/pull/14)) | ||
- Upgrade to `jest-worker@24` ([#14](https://github.com/jest-community/create-jest-runner/pull/14)) | ||
@@ -18,7 +26,7 @@ ## 0.4.0 | ||
* Add `getExtraOptions` to entry file ([#12](https://github.com/rogeliog/create-jest-runner/pull/12)) | ||
- Add `getExtraOptions` to entry file ([#12](https://github.com/rogeliog/create-jest-runner/pull/12)) | ||
### Breaking changes | ||
* Drop Node 4 ([#4](https://github.com/rogeliog/create-jest-runner/pull/4)) | ||
- Drop Node 4 ([#4](https://github.com/rogeliog/create-jest-runner/pull/4)) | ||
@@ -29,5 +37,5 @@ ## 0.3.1 | ||
* Use a mutex when running in band as well ([#7](https://github.com/rogeliog/create-jest-runner/pull/7)) | ||
* Use import/export ([#8](https://github.com/rogeliog/create-jest-runner/pull/8)) | ||
* Removing un-needed packages ([#1](https://github.com/rogeliog/create-jest-runner/pull/1)) | ||
- Use a mutex when running in band as well ([#7](https://github.com/rogeliog/create-jest-runner/pull/7)) | ||
- Use import/export ([#8](https://github.com/rogeliog/create-jest-runner/pull/8)) | ||
- Removing un-needed packages ([#1](https://github.com/rogeliog/create-jest-runner/pull/1)) | ||
@@ -38,7 +46,7 @@ ## 0.3.0 | ||
* Mutex the workers, to behave more like native jest test runs ([#5](https://github.com/rogeliog/create-jest-runner/pull/5)) | ||
- Mutex the workers, to behave more like native jest test runs ([#5](https://github.com/rogeliog/create-jest-runner/pull/5)) | ||
### Features | ||
* Support serial execution ([#6](https://github.com/rogeliog/create-jest-runner/pull/6)) | ||
- Support serial execution ([#6](https://github.com/rogeliog/create-jest-runner/pull/6)) | ||
@@ -49,3 +57,3 @@ ## O.2.0 | ||
* Add skip functionality | ||
- Add skip functionality | ||
@@ -56,6 +64,6 @@ ## O.1.1 | ||
* TTY support for jest-worker | ||
- TTY support for jest-worker | ||
## 0.1.0 | ||
* Initial Release | ||
- Initial Release |
{ | ||
"name": "generated-jest-runner", | ||
"version": "1.0.0", | ||
"description": "A generated jest runner", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"jest": { | ||
"runner": "./test/runner" | ||
}, | ||
"dependencies": { | ||
"jest": "^24.6.0", | ||
"create-jest-runner": "^0.5.0" | ||
} | ||
"name": "generated-jest-runner", | ||
"version": "1.0.0", | ||
"description": "A generated jest runner", | ||
"main": "src/index.js", | ||
"scripts": { | ||
"test": "jest" | ||
}, | ||
"jest": { | ||
"runner": "./test/runner" | ||
}, | ||
"dependencies": { | ||
"jest": "^24.6.0", | ||
"create-jest-runner": "^0.5.0" | ||
} | ||
} |
@@ -1,4 +0,3 @@ | ||
// eslint-disable-next-line import/no-unresolved | ||
const { createJestRunner } = require('create-jest-runner'); | ||
module.exports = createJestRunner(require.resolve('./run')); |
const fs = require('fs'); | ||
// eslint-disable-next-line import/no-unresolved | ||
const { pass, fail } = require('create-jest-runner'); | ||
@@ -4,0 +3,0 @@ |
{ | ||
"name": "create-jest-runner", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"main": "build/index.js", | ||
@@ -8,4 +8,4 @@ "author": "Rogelio Guzman <rogelioguzmanh@gmail.com>", | ||
"license": "MIT", | ||
"repository": "https://github.com/rogeliog/create-jest-runner.git", | ||
"homepage": "https://github.com/rogeliog/create-jest-runner", | ||
"repository": "https://github.com/jest-community/create-jest-runner.git", | ||
"homepage": "https://github.com/jest-community/create-jest-runner", | ||
"files": [ | ||
@@ -18,10 +18,12 @@ "build/", | ||
"lint": "eslint .", | ||
"watch": "babel lib -w --ignore **/*.test.js,integration -d build", | ||
"build": "babel lib --ignore **/*.test.js,integration -d build", | ||
"prepublish": "yarn build", | ||
"format": "prettier --write \"!(build)/**/*.js\"" | ||
"prettier:run": "prettier '*.md' '.github/**' '*.json' '**/package.json' '.vscode/*.json' 'generator/fixtures/*'", | ||
"prettier:check": "yarn prettier:run --check", | ||
"prettier:write": "yarn prettier:run --write", | ||
"watch": "babel lib -w --ignore '**/*.test.js,integration' -d build", | ||
"build": "babel lib --ignore '**/*.test.js,integration' -d build", | ||
"prepare": "yarn build" | ||
}, | ||
"dependencies": { | ||
"chalk": "^3.0.0", | ||
"jest-worker": "^25.1.0", | ||
"chalk": "^4.1.0", | ||
"jest-worker": "^26.3.0", | ||
"throat": "^5.0.0" | ||
@@ -33,4 +35,4 @@ }, | ||
"@babel/preset-env": "^7.0.0", | ||
"babel-jest": "^25.2.6", | ||
"eslint": "^6.8.0", | ||
"babel-jest": "^26.3.0", | ||
"eslint": "^7.7.0", | ||
"eslint-config-airbnb-base": "^14.1.0", | ||
@@ -41,11 +43,10 @@ "eslint-config-prettier": "^6.10.1", | ||
"eslint-plugin-prettier": "^3.0.1", | ||
"execa": "^3.0.0", | ||
"jest": "^25.2.7", | ||
"prettier": "^1.7.4", | ||
"execa": "^4.0.3", | ||
"jest": "^26.4.1", | ||
"prettier": "^2.0.5", | ||
"strip-ansi": "^6.0.0" | ||
}, | ||
"bin": { | ||
"create-jest-runner": "./generator/index.js" | ||
}, | ||
"bin": "./generator/index.js", | ||
"prettier": { | ||
"arrowParens": "avoid", | ||
"singleQuote": true, | ||
@@ -52,0 +53,0 @@ "trailingComma": "all" |
@@ -19,4 +19,4 @@ # create-jest-runner | ||
* Entry file: Used by Jest as an entrypoint to your runner. | ||
* Run file: Runs once per test file, and it encapsulates the logic of your runner | ||
- Entry file: Used by Jest as an entrypoint to your runner. | ||
- Run file: Runs once per test file, and it encapsulates the logic of your runner | ||
@@ -33,5 +33,5 @@ ### 1) Create your entry file | ||
* `pathToRunFile`: path to your run file. | ||
* `config`: Optional argument for configuring the runner. | ||
* `getExtraOptions`: `() => object` used for passing extra options to the runner. It needs to be a serializable object because it will be send to a different Node process. | ||
- `pathToRunFile`: path to your run file. | ||
- `config`: Optional argument for configuring the runner. | ||
- `getExtraOptions`: `() => object` used for passing extra options to the runner. It needs to be a serializable object because it will be send to a different Node process. | ||
@@ -50,12 +50,12 @@ ### 2) Create your run file | ||
* `testPath`: Path of the file that is going to be tests | ||
* `config`: Jest Project config used by this file | ||
* `globalConfig`: Jest global config | ||
* `extraOptions`: The return value of the `{ getExtraOptions }` argument of `createJestRunner(...)` the entry file. | ||
- `testPath`: Path of the file that is going to be tests | ||
- `config`: Jest Project config used by this file | ||
- `globalConfig`: Jest global config | ||
- `extraOptions`: The return value of the `{ getExtraOptions }` argument of `createJestRunner(...)` the entry file. | ||
You can return one of the following values: | ||
* `testResult`: Needs to be an object of type https://github.com/facebook/jest/blob/4d3c1a187bd429fd8611f6b0f19e4aa486fa2a85/packages/jest-test-result/src/types.ts#L103-L135 | ||
* `Promise<testResult|Error>`: needs to be of above type. | ||
* `Error`: good for reporting system error, not failed tests. | ||
- `testResult`: Needs to be an object of type https://github.com/facebook/jest/blob/4d3c1a187bd429fd8611f6b0f19e4aa486fa2a85/packages/jest-test-result/src/types.ts#L103-L135 | ||
- `Promise<testResult|Error>`: needs to be of above type. | ||
- `Error`: good for reporting system error, not failed tests. | ||
@@ -62,0 +62,0 @@ ## Example of a runner |
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
23621
397
+ Added@types/node@22.5.5(transitive)
+ Addedchalk@4.1.2(transitive)
+ Addedjest-worker@26.6.2(transitive)
+ Addedundici-types@6.19.8(transitive)
- Removedchalk@3.0.0(transitive)
- Removedjest-worker@25.5.0(transitive)
Updatedchalk@^4.1.0
Updatedjest-worker@^26.3.0