Updated libraries & testing

This commit is contained in:
Zakary Timson 2023-03-20 20:42:32 +00:00
parent 4e6ab26f0d
commit 7a9ab68402
3 changed files with 41 additions and 43 deletions

View File

@ -1,12 +1,16 @@
module.exports = {
"reporters": ["default"],
"roots": [
"<rootDir>/tests"
],
"testMatch": [
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
"transform": {
".+\\.(ts)$": "ts-jest"
},
}
"reporters": ["default", "jest-junit"],
"roots": [
"<rootDir>/tests"
],
"testMatch": [
"**/?(*.)+(spec|test).+(ts|tsx|js)"
],
"transform": {
".+\\.(ts)$": "ts-jest"
},
collectCoverageFrom: [
'src/**/utils/**/*.ts',
'!src/**/utils/**/*.d.ts'
],
};

View File

@ -1,32 +1,33 @@
{
"name": "webstorage-decorators",
"version": "4.2.0",
"version": "4.3.0",
"description": "Decorators to sync class properties to Local/Session storage",
"repository": "https://github.com/ztimson/WebstorageDecorators",
"main": "./lib/index.js",
"typings": "./lib/index.d.ts",
"author": "Zak Timson",
"license": "ISC",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"test": "jest --verbose",
"test:coverage": "npx jest --verbose --coverage",
"watch": "npm run build && tsc --watch"
},
"files": [
"lib"
],
"keywords": [
"Decorators",
"LocalStorage",
"SessionStorage",
"WebStorage"
],
"author": "Zak Timson",
"license": "ISC",
"dependencies": {},
"devDependencies": {
"@types/jest": "^26.0.15",
"jest": "^26.6.0",
"ts-jest": "^26.4.1",
"typescript": "^4.0.3"
}
"@types/jest": "^29.2.3",
"jest": "^29.3.1",
"jest-junit": "^15.0.0",
"ts-jest": "^29.0.3",
"typescript": "^4.9.3"
},
"files": [
"dist"
]
}

View File

@ -1,21 +1,14 @@
{
"compilerOptions": {
"target": "es2015",
"module": "es2020",
"declaration": true,
"sourceMap": true,
"outDir": "lib",
"strict": true,
"noImplicitAny": false,
"moduleResolution": "node",
"typeRoots": [
"./node_modules/@types"
],
"esModuleInterop": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true
},
"include": [
"./src"
]
"compilerOptions": {
"declaration": true,
"declarationMap": true,
"lib": ["ESNext"],
"module": "commonjs",
"outDir": "./dist",
"strict": true,
"target": "es2015"
},
"include": [
"src/**/*"
]
}