Files
tsgo/testdata/baselines/reference/submodule/compiler/didYouMeanSuggestionErrors.js

59 lines
1.5 KiB
TypeScript

//// [tests/cases/compiler/didYouMeanSuggestionErrors.ts] ////
//// [didYouMeanSuggestionErrors.ts]
describe("my test suite", () => {
it("should run", () => {
const a = $(".thing");
});
});
suite("another suite", () => {
test("everything else", () => {
console.log(process.env);
document.createElement("div");
const x = require("fs");
const y = Buffer.from([]);
const z = module.exports;
const a = new Map();
const b = new Set();
const c = new WeakMap();
const d = new WeakSet();
const e = Symbol();
const f = Promise.resolve(0);
const i: Iterator<any> = null as any;
const j: AsyncIterator<any> = null as any;
const k: Symbol = null as any;
const l: Promise<any> = null as any;
});
});
//// [didYouMeanSuggestionErrors.js]
"use strict";
describe("my test suite", () => {
it("should run", () => {
const a = $(".thing");
});
});
suite("another suite", () => {
test("everything else", () => {
console.log(process.env);
document.createElement("div");
const x = require("fs");
const y = Buffer.from([]);
const z = module.exports;
const a = new Map();
const b = new Set();
const c = new WeakMap();
const d = new WeakSet();
const e = Symbol();
const f = Promise.resolve(0);
const i = null;
const j = null;
const k = null;
const l = null;
});
});