Skip to content

Commit

Permalink
[ts-migrate][.] Init tsconfig.json file
Browse files Browse the repository at this point in the history
Co-authored-by: ts-migrate <>
  • Loading branch information
jonluca committed Mar 6, 2024
1 parent 8354a56 commit 4645c4a
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/fixtures/mocha.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,23 @@
"use strict";

// @ts-expect-error TS(2580): Cannot find name 'require'. Do you need to install... Remove this comment to see the full error message
const { host } = require("@jsdevtools/host-environment");

if (host.browser) {
// @ts-expect-error TS(2304): Cannot find name 'mocha'.
mocha.setup("bdd");
// @ts-expect-error TS(2304): Cannot find name 'mocha'.
mocha.fullTrace();
// @ts-expect-error TS(2304): Cannot find name 'mocha'.
mocha.asyncOnly();
// @ts-expect-error TS(2304): Cannot find name 'mocha'.
mocha.checkLeaks();
// @ts-expect-error TS(2304): Cannot find name 'mocha'.
mocha.globals(["$0", "$1", "$2", "$3", "$4", "$5", "ga", "gaplugins", "gaGlobal", "gaData"]);
}

beforeEach(function () {
// @ts-expect-error TS(2304): Cannot find name 'beforeEach'.
beforeEach(function(this: any) {
// Most of our tests perform multiple AJAX requests,
// so we need to increase the timeouts to allow for that
this.currentTest.timeout(20000);
Expand Down

0 comments on commit 4645c4a

Please sign in to comment.