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:
Jeremy Rifkin
2023-02-12 11:06:10 -05:00
committed by GitHub
parent 44db15d697
commit 8e53f01553
6 changed files with 4 additions and 2 deletions

View File

@@ -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');