Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jest-runner-prettier

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-runner-prettier - npm Package Compare versions

Comparing version 0.3.6 to 0.3.7

.github/workflows/release.yml

6

jest-preset.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc