Skip to content

Commit c5784fe

Browse files
authored
Change test matching strategy to include all test files (#1161)
1 parent 046ea0d commit c5784fe

File tree

24 files changed

+30
-22
lines changed

24 files changed

+30
-22
lines changed

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
],
1616
"repository": "jimp-dev/jimp",
1717
"scripts": {
18-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register test/**/*.js",
18+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1919
"test:watch": "npm run test -- --reporter min --watch",
2020
"test:coverage": "nyc npm run test",
2121
"build": "npm run build:node:production && npm run build:module",

packages/jimp/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"repository": "jimp-dev/jimp",
1919
"scripts": {
20-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
20+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
2121
"test:watch": "npm run test -- --reporter min --watch",
2222
"test:coverage": "nyc npm run test",
2323
"build": "npm run build:browser && npm run build:node:production && npm run build:module",

packages/plugin-blit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
10+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1111
"test:watch": "npm run test -- --reporter min --watch",
1212
"test:coverage": "nyc npm run test",
1313
"build": "npm run build:node:production && npm run build:module",

packages/plugin-circle/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
10+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1111
"test:watch": "npm run test -- --reporter min --watch",
1212
"test:coverage": "nyc npm run test",
1313
"build": "npm run build:node:production && npm run build:module",

packages/plugin-color/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
10+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1111
"test:watch": "npm run test -- --reporter min --watch",
1212
"test:coverage": "nyc npm run test",
1313
"build": "npm run build:node:production && npm run build:module",

packages/plugin-contain/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
10+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1111
"test:watch": "npm run test -- --reporter min --watch",
1212
"test:coverage": "nyc npm run test",
1313
"build": "npm run build:node:production && npm run build:module",

packages/plugin-cover/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
10+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1111
"test:watch": "npm run test -- --reporter min --watch",
1212
"test:coverage": "nyc npm run test",
1313
"build": "npm run build:node:production && npm run build:module",

packages/plugin-crop/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
10+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1111
"test:watch": "npm run test -- --reporter min --watch",
1212
"test:coverage": "nyc npm run test",
1313
"build": "npm run build:node:production && npm run build:module",

packages/plugin-fisheye/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"test": "cross-env BABEL_ENV=test mocha --require @babel/register",
10+
"test": "cross-env BABEL_ENV=test mocha --require @babel/register --recursive test --extension js",
1111
"test:watch": "npm run test -- --reporter min --watch",
1212
"test:coverage": "nyc npm run test",
1313
"build": "npm run build:node:production && npm run build:module",

packages/plugin-flip/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"repository": "jimp-dev/jimp",
88
"types": "index.d.ts",
99
"scripts": {
10-
"build": "npm run build:node:production && npm run build:module",
10+
"build": "npm run build:node:production && npm run build:module --recursive test",
1111
"build:watch": "npm run build:node:debug -- -- --watch --verbose",
1212
"build:debug": "npm run build:node:debug",
1313
"build:module": "cross-env BABEL_ENV=module babel src -d es --source-maps --config-file ../../babel.config.js",

0 commit comments

Comments
 (0)