mirror of
https://github.com/codex-team/editor.js
synced 2024-05-19 06:47:16 +02:00
b39996616c
* renderer batching * initialization and rendering performance optimized * insertMany api method added * Update index.html * rm old method * upd changelog * upd paragraph * paste tests fixed * api blocks tests fixed * backspace event tests fixed * async issues in tests fixed * eslint * stub block added, tests added * eslint * eslint * add test for insertMany() * Update package.json
32 lines
638 B
TypeScript
32 lines
638 B
TypeScript
/**
|
|
* This file is processed and
|
|
* loaded automatically before the test files.
|
|
*
|
|
* This is a great place to put global configuration and
|
|
* behavior that modifies Cypress.
|
|
*/
|
|
|
|
import '@cypress/code-coverage/support';
|
|
import installLogsCollector from 'cypress-terminal-report/src/installLogsCollector';
|
|
|
|
installLogsCollector();
|
|
|
|
/**
|
|
* File with the helpful commands
|
|
*/
|
|
import './commands';
|
|
|
|
import chaiSubset from 'chai-subset';
|
|
|
|
/**
|
|
* "containSubset" object properties matcher
|
|
*/
|
|
chai.use(chaiSubset);
|
|
|
|
/**
|
|
* Before-each hook for the cypress tests
|
|
*/
|
|
beforeEach((): void => {
|
|
cy.visit('test/cypress/fixtures/test.html');
|
|
});
|