mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Vitest (#6219)
Port to vitest. Port everything to typescript. Remove chai, mocha and chai-as-promised. Adds some docs.
This commit is contained in:
@@ -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();
|
||||
});
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user