enable typescript support for cypress

This commit is contained in:
Hans Pagel
2020-09-30 17:12:34 +02:00
parent 4fcb4e94bd
commit 82a9654189
5 changed files with 28 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
{
"baseUrl": "http://localhost:3000",
"integrationFolder": "../docs/src/",
"testFiles": "**/*.spec.js",
"integrationFolder": "../",
"testFiles": "{docs,tests}/**/*.spec.{js,ts}",
"viewportWidth": 1280,
"viewportHeight": 1280
}

View File

@@ -0,0 +1,9 @@
import { capitalize } from '@tiptap/core'
describe('capitalize test', () => {
it('capitalize a word', () => {
const capitalized = capitalize('test')
expect(capitalized).to.eq('Test')
})
})

View File

@@ -0,0 +1,5 @@
describe('example test', () => {
it('should work', () => {
expect('<p>Example Text</p>').to.eq('<p>Example Text</p>')
})
})

View File

@@ -0,0 +1,11 @@
{
"extends": "../../tsconfig.json",
"compilerOptions": {
"noEmit": false,
"sourceMap": false
},
"include": [
"../node_modules/cypress",
"./*/*.ts"
]
}