Skip to content
This repository was archived by the owner on May 31, 2024. It is now read-only.

Commit e353a18

Browse files
authored
Merge pull request #39 from lemoncloud-io/develop
merge to master
2 parents c5f38d2 + 12b778c commit e353a18

File tree

9 files changed

+2558
-336
lines changed

9 files changed

+2558
-336
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,4 +67,5 @@ Thumbs.db
6767

6868

6969
*.js
70+
!jest.config.json
7071
!_*.js

.husky/pre-push

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx jest --watchAll=false

.npmignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Dockerfile
7070
# jest
7171
.jest.init.js
7272
coverage
73-
jest.config.js
73+
jest.config.json
7474
__mocks__
7575
__snapshots__
7676
__tests__

jest.config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"preset": "ts-jest",
3+
"testEnvironment": "node",
4+
"rootDir": "./",
5+
"coverageDirectory": "<rootDir>/coverage",
6+
"collectCoverageFrom": ["<rootDir>/src/**/*.ts", "!<rootDir>/src/**/constant.ts", "!<rootDir>/src/**/type.ts"],
7+
"testPathIgnorePatterns": ["<rootDir>/node_modules"],
8+
"coverageReporters": ["html", "json"],
9+
"testMatch": ["<rootDir>/src/**/*.spec.ts", "<rootDir>/src/**/*.test.ts"]
10+
}

package.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lemoncloud/lemon-front-lib",
3-
"version": "1.3.18",
3+
"version": "1.4.1",
44
"description": "Web Core Library for Lemoncloud",
55
"exports": "./dist/index.js",
66
"types": "./dist/index.d.ts",
@@ -14,7 +14,8 @@
1414
"start": "tsc -w",
1515
"build": "pnpm clean && tsup src/index.ts",
1616
"release": "pnpm run build && changeset publish",
17-
"test": "echo \"Error: no test specified\" && exit 1",
17+
"test": "jest --passWithNoTests --updateSnapshot --watchAll",
18+
"test:coverage": "jest --passWithNoTests --updateSnapshot --coverage",
1819
"fix:prettier": "prettier \"src/**/*.ts\" --write",
1920
"fix:lint": "eslint src --ext .ts --fix",
2021
"changeset": "npx changeset",
@@ -28,6 +29,7 @@
2829
"author": "Hyungtak Jin",
2930
"license": "MIT",
3031
"dependencies": {
32+
"@azure/identity": "^4.0.0",
3133
"aws-sdk": "^2.1490.0",
3234
"axios": "0.19.0",
3335
"crypto-js": "^4.2.0",
@@ -43,8 +45,11 @@
4345
"eslint": "^8.45.0",
4446
"eslint-plugin-unused-imports": "^3.0.0",
4547
"husky": "^8.0.0",
48+
"jest": "^29.7.0",
49+
"jest-environment-jsdom": "^29.7.0",
4650
"lint-staged": "^13.2.3",
4751
"prettier": "^3.0.0",
52+
"ts-jest": "^29.1.1",
4853
"tsup": "^7.1.0",
4954
"typescript": "^5.1.6"
5055
}

0 commit comments

Comments
 (0)