mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 09:23:52 -05:00
Tsify cypress/ (#4717)
<!-- THIS COMMENT IS INVISIBLE IN THE FINAL PR, BUT FEEL FREE TO REMOVE IT Thanks for taking the time to improve CE. We really appreciate it. Before opening the PR, please make sure that the tests & linter pass their checks, by running `make check`. In the best case scenario, you are also adding tests to back up your changes, but don't sweat it if you don't. We can discuss them at a later date. Feel free to append your name to the CONTRIBUTORS.md file Thanks again, we really appreciate this! -->
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
export function runFrontendTest(name) {
|
||||
import '../../static/global';
|
||||
|
||||
export function runFrontendTest(name: string) {
|
||||
it(name, () => {
|
||||
cy.window().then(win => {
|
||||
return win.compilerExplorerFrontendTesting.run(name);
|
||||
@@ -6,7 +8,7 @@ export function runFrontendTest(name) {
|
||||
});
|
||||
}
|
||||
|
||||
export function stubConsoleOutput(win) {
|
||||
export function stubConsoleOutput(win: Cypress.AUTWindow) {
|
||||
cy.stub(win.console, 'log').as('consoleLog');
|
||||
cy.stub(win.console, 'warn').as('consoleWarn');
|
||||
cy.stub(win.console, 'error').as('consoleError');
|
||||
Reference in New Issue
Block a user