mirror of
https://github.com/ueberdosis/tiptap.git
synced 2025-01-18 14:13:21 +08:00
enable typescript support for cypress
This commit is contained in:
parent
4fcb4e94bd
commit
82a9654189
@ -12,6 +12,7 @@ export { default as nodeInputRule } from './src/inputRules/nodeInputRule'
|
|||||||
export { default as markInputRule } from './src/inputRules/markInputRule'
|
export { default as markInputRule } from './src/inputRules/markInputRule'
|
||||||
export { default as markPasteRule } from './src/pasteRules/markPasteRule'
|
export { default as markPasteRule } from './src/pasteRules/markPasteRule'
|
||||||
|
|
||||||
|
export { default as capitalize } from './src/utils/capitalize'
|
||||||
export { default as getSchema } from './src/utils/getSchema'
|
export { default as getSchema } from './src/utils/getSchema'
|
||||||
export { default as generateHtml } from './src/utils/generateHtml'
|
export { default as generateHtml } from './src/utils/generateHtml'
|
||||||
export { default as getHtmlFromFragment } from './src/utils/getHtmlFromFragment'
|
export { default as getHtmlFromFragment } from './src/utils/getHtmlFromFragment'
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"baseUrl": "http://localhost:3000",
|
"baseUrl": "http://localhost:3000",
|
||||||
"integrationFolder": "../docs/src/",
|
"integrationFolder": "../",
|
||||||
"testFiles": "**/*.spec.js",
|
"testFiles": "{docs,tests}/**/*.spec.{js,ts}",
|
||||||
"viewportWidth": 1280,
|
"viewportWidth": 1280,
|
||||||
"viewportHeight": 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"
|
||||||
|
]
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user