fix(tests): fix failing cypress tests and update cypress
* test: update cypress and migrate configs * test: fix codeBlockLowlight test * test: bump cypress actions
This commit is contained in:
12
tests/cypress.config.js
Normal file
12
tests/cypress.config.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const { defineConfig } = require('cypress')
|
||||
|
||||
module.exports = defineConfig({
|
||||
defaultCommandTimeout: 15000,
|
||||
e2e: {
|
||||
setupNodeEvents(on, config) {
|
||||
return require('./cypress/plugins/index.js')(on, config)
|
||||
},
|
||||
baseUrl: 'http://localhost:3000',
|
||||
specPattern: '../{demos,tests}/**/*.spec.{js,ts}',
|
||||
},
|
||||
})
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"baseUrl": "http://localhost:3000",
|
||||
"integrationFolder": "../",
|
||||
"testFiles": "{demos,tests}/**/*.spec.{js,ts}",
|
||||
"defaultCommandTimeout": 15000
|
||||
}
|
||||
@@ -5,7 +5,7 @@ import { CodeBlockLowlight } from '@tiptap/extension-code-block-lowlight'
|
||||
import { Document } from '@tiptap/extension-document'
|
||||
import { Paragraph } from '@tiptap/extension-paragraph'
|
||||
import { Text } from '@tiptap/extension-text'
|
||||
import * as lowlight from 'lowlight'
|
||||
import { lowlight } from 'lowlight'
|
||||
|
||||
describe('code block highlight', () => {
|
||||
let Frontmatter
|
||||
|
||||
Reference in New Issue
Block a user