Port to vitest. Port everything to typescript. Remove chai, mocha and
chai-as-promised. Adds some docs.
This commit is contained in:
Matt Godbolt
2024-03-08 22:25:09 -06:00
committed by GitHub
parent 45b743e22b
commit fd3dd917f5
82 changed files with 4212 additions and 3862 deletions

View File

@@ -1,6 +1,3 @@
// eslint-disable-next-line node/no-unpublished-import
import {it} from 'mocha';
import {assertNoConsoleOutput, stubConsoleOutput} from '../support/utils';
const PANE_DATA_MAP = {
@@ -39,7 +36,8 @@ describe('Individual pane testing', () => {
});
});
afterEach('Ensure no output in console', () => {
afterEach(() => {
// Ensure no output in console
return cy.window().then(win => {
assertNoConsoleOutput();
});
@@ -104,7 +102,7 @@ describe('Known good state test', () => {
);
});
afterEach('Ensure no output in console', () => {
afterEach(() => {
return cy.window().then(win => {
assertNoConsoleOutput();
});

View File

@@ -3,11 +3,10 @@
"compilerOptions": {
/* Module resolution */
"target": "esnext",
"module": "commonjs",
"moduleResolution": "classic",
"module": "es2015",
"moduleResolution": "bundler",
/* Code generation */
"typeRoots": ["../node_modules/@types"],
"types": ["mocha", "chai", "chai-http"],
/* https://github.com/cypress-io/cypress/issues/26203#issuecomment-1571861397 */
"sourceMap": false
}