Skip to content

Commit

Permalink
test(typings): add rendering test (#1625)
Browse files Browse the repository at this point in the history
  • Loading branch information
layershifter authored and levithomason committed May 6, 2017
1 parent d14f6be commit 109ed96
Show file tree
Hide file tree
Showing 6 changed files with 173 additions and 153 deletions.
1 change: 1 addition & 0 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,6 @@ test:
pre:
- npm run lint
- npm run tsd:lint
- npm run tsd:test
post:
- bash <(curl -s https://codecov.io/bash)
302 changes: 151 additions & 151 deletions index.d.ts

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
"test": "cross-env NODE_ENV=test karma start",
"test:watch": "npm run test --silent -- --no-single-run",
"tsd": "gulp tsd",
"tsd:lint": "tslint './src/**/*.d.ts'",
"tsd:lint:fix": "npm run -s tsd:lint -- --fix"
"tsd:lint": "tslint './index.d.ts' './src/**/*.d.ts' './test/typings.d.ts'",
"tsd:lint:fix": "npm run -s tsd:lint -- --fix",
"tsd:test": "npm run tsd && tsc -p ./"
},
"repository": {
"type": "git",
Expand Down
1 change: 1 addition & 0 deletions test/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
typings.js
6 changes: 6 additions & 0 deletions test/typings.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import * as React from 'react'
import { Button } from '../';

const Test = () => <Button />

export default Test
11 changes: 11 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"compilerOptions": {
"jsx": "react"
},
"include": [
"src/**/*.d.ts"
],
"files": [
"test/typings.tsx"
]
}

0 comments on commit 109ed96

Please sign in to comment.