enable typescript support for cypress
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
9
tests/cypress/integration/core/capitalize.spec.ts
Normal file
9
tests/cypress/integration/core/capitalize.spec.ts
Normal 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')
|
||||
})
|
||||
})
|
||||
5
tests/cypress/integration/core/example.spec.ts
Normal file
5
tests/cypress/integration/core/example.spec.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
describe('example test', () => {
|
||||
it('should work', () => {
|
||||
expect('<p>Example Text</p>').to.eq('<p>Example Text</p>')
|
||||
})
|
||||
})
|
||||
11
tests/cypress/tsconfig.json
Normal file
11
tests/cypress/tsconfig.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"extends": "../../tsconfig.json",
|
||||
"compilerOptions": {
|
||||
"noEmit": false,
|
||||
"sourceMap": false
|
||||
},
|
||||
"include": [
|
||||
"../node_modules/cypress",
|
||||
"./*/*.ts"
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user