jest-environment-knex
Advanced tools
Comparing version 2.0.0 to 3.0.0
{ | ||
"name": "jest-environment-knex", | ||
"version": "2.0.0", | ||
"main": "./dist/src/jest-environment-knex.js", | ||
"types": "./dist/src/jest-environment-knex.d.ts", | ||
"version": "3.0.0", | ||
"main": "./lib/jest-environment-knex.js", | ||
"types": "./lib/jest-environment-knex.d.ts", | ||
"files": [ | ||
"dist" | ||
"lib" | ||
], | ||
"scripts": { | ||
"build": "tsc", | ||
"build": "tsc -p tsconfig.build.json", | ||
"lint": "tslint -p tsconfig.json -t stylish", | ||
"test": "jest", | ||
"coverage": "jest --coverage", | ||
"test:sqlite3": "jest --config ./__tests__/sqlite3/jest.config.js", | ||
@@ -26,4 +28,6 @@ "test:postgres": "jest --config ./__tests__/postgres/jest.config.js", | ||
"@types/jest": "^26.0.14", | ||
"@types/jest-when": "^2.7.1", | ||
"@types/node": "^12.12.31", | ||
"jest": "^26.4.2", | ||
"jest-when": "^2.7.2", | ||
"pg": "^8.3.3", | ||
@@ -30,0 +34,0 @@ "prettier": "^2.1.2", |
# jest-environment-knex | ||
[![Build Status][travis-image]][travis-url] | ||
[![Github Master CI Status](https://github.com/SocialGouv/jest-environment-knex/workflows/ci/badge.svg?branch=master)](https://github.com/SocialGouv/jest-environment-knex/actions/) | ||
[![codecov](https://codecov.io/gh/SocialGouv/jest-environment-knex/branch/master/graph/badge.svg)](https://codecov.io/gh/SocialGouv/jest-environment-knex) | ||
[![NPM version][npm-image]][npm-url] | ||
@@ -34,28 +35,10 @@ | ||
const results = await knex.raw(query, [knex.client.database()]); | ||
expect(results.rows.map(row => row.table_name).sort()).toMatchSnapshot(); | ||
expect(results.rows.map((row) => row.table_name).sort()).toMatchSnapshot(); | ||
}); | ||
``` | ||
## Release policy | ||
### Auto | ||
Releases are automaticly made through our [GitHub Actions](https://github.com/SocialGouv/jest-environment-knex/actions) strictly following the [Semantic Versioning](http://semver.org/) specification thanks to [semantic-release](https://github.com/semantic-release/semantic-release). | ||
Trigger a custom build on [Travis][travis-url] (in the "More options" right menu) on the `master` branch with a custom config: | ||
```yml | ||
env: | ||
global: | ||
- RELEASE=true | ||
``` | ||
You can change the lerna arguments though the `LERNA_ARGS` variable. | ||
```yml | ||
env: | ||
global: | ||
- STANDARD_VERSION_ARGS="--release-as major" | ||
- RELEASE=true | ||
``` | ||
[npm-url]: https://npmjs.org/package/jest-environment-knex | ||
@@ -62,0 +45,0 @@ [npm-image]: http://img.shields.io/npm/v/jest-environment-knex.svg |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
34904
1
15
8
160
47
1