Skip to content

Commit fc5f36e

Browse files
committed
test: add import tests for all packages
1 parent 1134b80 commit fc5f36e

File tree

24 files changed

+64
-9
lines changed

24 files changed

+64
-9
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// eslint-disable-next-line import/no-unassigned-import
2+
import "../src/index.js"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": ["**/*.ts"]
4+
}

packages/ci-log/jest.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import jestConfig from "../../jest.config.mjs"
2+
export default jestConfig

packages/ci-log/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
"scripts": {
1313
"build": "tsc --pretty",
1414
"dev": "tsc --watch --pretty",
15+
"lint.tsc.test": "tsc --noEmit --pretty -p ./__tests__/tsconfig.json",
1516
"lint.tsc": "tsc --noEmit --pretty",
1617
"lint.eslint": "eslint '**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml}' --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
17-
"prepublishOnly": "pnpm run build"
18+
"prepublishOnly": "pnpm run build",
19+
"test": "jest --coverage"
1820
},
1921
"dependencies": {
2022
"@actions/core": "^1.10.1",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// eslint-disable-next-line import/no-unassigned-import
2+
import "../src/index.js"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": ["**/*.ts"]
4+
}

packages/envosman/jest.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import jestConfig from "../../jest.config.mjs"
2+
export default jestConfig

packages/envosman/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,11 @@
1212
"scripts": {
1313
"build": "tsc --pretty",
1414
"dev": "tsc --watch --pretty",
15+
"lint.tsc.test": "tsc --noEmit --pretty -p ./__tests__/tsconfig.json",
1516
"lint.tsc": "tsc --noEmit --pretty",
1617
"lint.eslint": "eslint '**/*.{ts,tsx,js,jsx,cjs,mjs,json,yaml}' --no-error-on-unmatched-pattern --cache --cache-location ./.cache/eslint/ --fix",
17-
"prepublishOnly": "pnpm run build"
18+
"prepublishOnly": "pnpm run build",
19+
"test": "jest --coverage"
1820
},
1921
"dependencies": {
2022
"@actions/core": "^1.10.1",
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// eslint-disable-next-line import/no-unassigned-import
2+
import "../src/index.js"
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": ["**/*.ts"]
4+
}

0 commit comments

Comments
 (0)