Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@ggascoigne/jest-config
Advanced tools
My personal shareable jest configuration.
pnpm add -D jest @ggascoigne/jest-config
jest.config.js
module.exports = {
preset: '@ggascoigne/jest-config',
};
An example with testMatch
that Jest uses to detect test files.
jest.config.js
module.exports = {
preset: '@ggascoigne/jest-config',
testMatch: [
'<rootDir>/__tests__/**/**.+(ts|tsx|js|jsx)',
'<rootDir>/src/**/?(*.)+(spec|test).+(ts|tsx|js|jsx)',
],
};
Running this command:
npm set-script test "jest"
Will create:
package.json
"scripts": {
"test": "jest"
},
Note: Executes tests and coverage output related to files that have been changed in the current commit only.
lint-staged.config.js
module.exports = {
'*.{js,jsx,ts,tsx}': [
'pnpm test --bail --passWithNoTests --findRelatedTests --coverage',
],
};
jest-preset.js
@types/jest
ts-jest
jest-environment-jsdom
jest-transform-stub
MIT
FAQs
A shareable jest configuration for projects.
The npm package @ggascoigne/jest-config receives a total of 2 weekly downloads. As such, @ggascoigne/jest-config popularity was classified as not popular.
We found that @ggascoigne/jest-config demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.