Skip to content

Commit 12bcffb

Browse files
feat: Add testing sample
1 parent 74a5577 commit 12bcffb

4 files changed

Lines changed: 8 additions & 4 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
dist
2-
node_modules
2+
node_modules
3+
index.test.js

index.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
type A = string & number & () => {}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"name": "slots-component",
33
"scripts": {
4-
"build": "tsc"
4+
"build": "tsc",
5+
"test": "tsc index.test.ts"
56
},
67
"devDependencies": {
78
"@types/react": "^18.2.73",
@@ -21,4 +22,4 @@
2122
"release": true
2223
}
2324
}
24-
}
25+
}

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
},
1616
"exclude": [
1717
"node_modules",
18-
"dist"
18+
"dist",
19+
"**.test.ts"
1920
]
2021
}

0 commit comments

Comments
 (0)