Skip to content

Commit 109ed96

Browse files
layershifterlevithomason
authored andcommitted
test(typings): add rendering test (Semantic-Org#1625)
1 parent d14f6be commit 109ed96

File tree

6 files changed

+173
-153
lines changed

6 files changed

+173
-153
lines changed

circle.yml

+1
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ test:
1111
pre:
1212
- npm run lint
1313
- npm run tsd:lint
14+
- npm run tsd:test
1415
post:
1516
- bash <(curl -s https://codecov.io/bash)

index.d.ts

+151-151
Large diffs are not rendered by default.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@
3939
"test": "cross-env NODE_ENV=test karma start",
4040
"test:watch": "npm run test --silent -- --no-single-run",
4141
"tsd": "gulp tsd",
42-
"tsd:lint": "tslint './src/**/*.d.ts'",
43-
"tsd:lint:fix": "npm run -s tsd:lint -- --fix"
42+
"tsd:lint": "tslint './index.d.ts' './src/**/*.d.ts' './test/typings.d.ts'",
43+
"tsd:lint:fix": "npm run -s tsd:lint -- --fix",
44+
"tsd:test": "npm run tsd && tsc -p ./"
4445
},
4546
"repository": {
4647
"type": "git",

test/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typings.js

test/typings.tsx

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import * as React from 'react'
2+
import { Button } from '../';
3+
4+
const Test = () => <Button />
5+
6+
export default Test

tsconfig.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"compilerOptions": {
3+
"jsx": "react"
4+
},
5+
"include": [
6+
"src/**/*.d.ts"
7+
],
8+
"files": [
9+
"test/typings.tsx"
10+
]
11+
}

0 commit comments

Comments
 (0)