Skip to content

Commit 2b4b693

Browse files
committed
add tests around urls
1 parent 39ef28d commit 2b4b693

File tree

7 files changed

+2540
-359
lines changed

7 files changed

+2540
-359
lines changed

.npmignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
.github
22
.vscode
3+
34
.eslintrc
4-
.prettierrc
5+
.prettierrc
6+
jest.config.js

jest.config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/** @type {import('ts-jest/dist/types').InitialOptionsTsJest} */
2+
module.exports = {
3+
preset: 'ts-jest',
4+
testEnvironment: 'node',
5+
testPathIgnorePatterns: ['esm/*', 'cjs/*', 'dist/*'],
6+
};

package.json

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@delicious-simplicity/next-image-contentful-loader",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"repository": "https://github.com/delicious-simplicity/next-image-contentful-loader.git",
55
"author": "Devin Metivier <devinmetivier@gmail.com>",
66
"contributors": [
@@ -17,6 +17,7 @@
1717
"main": "cjs/index.js",
1818
"module": "esm/index.js",
1919
"types": "types/index.d.ts",
20+
"sideEffects": false,
2021
"files": [
2122
"cjs",
2223
"esm",
@@ -31,15 +32,19 @@
3132
"build:esm": "tsc --target ESNext --module ES6 --outDir esm",
3233
"build:types": "tsc --d --declarationMap --declarationDir types",
3334
"lint": "eslint . --ext .js,.ts,.jsx,.tsx",
34-
"lint:fix": "eslint . --ext .js,.ts,.jsx,.tsx --fix"
35+
"lint:fix": "eslint . --ext .js,.ts,.jsx,.tsx --fix",
36+
"test": "jest"
3537
},
3638
"devDependencies": {
37-
"@delicious-simplicity/eslint-config": "^1.0.3",
39+
"@delicious-simplicity/eslint-config": "^1.1.0",
40+
"@types/jest": "^29.0.3",
3841
"@types/node": "^17.0.23",
39-
"@vercel/ncc": "^0.33.4",
40-
"next": "^12.1.4",
41-
"react": "^18.0.0",
42-
"react-dom": "^18.0.0",
43-
"typescript": "^4.6.3"
42+
"@vercel/ncc": "^0.34.0",
43+
"jest": "^29.0.3",
44+
"next": "^12.3.1",
45+
"react": "^18.2.0",
46+
"react-dom": "^18.2.0",
47+
"ts-jest": "^29.0.2",
48+
"typescript": "^4.8.3"
4449
}
4550
}

0 commit comments

Comments
 (0)