Skip to content

Conversation

@rschristian
Copy link
Member

No description provided.

Comment on lines -13 to +19
.call(eval('Symbol.for'))
.call((0, eval)('Symbol.for'))
.match(/\[native code\]/)
) {
// Concatenate these string literals to prevent the test
// harness and/or Babel from modifying the symbol value.
// eslint-disable-next-line
out = eval('Sym' + 'bol.for("' + name + '")');
out = (0, eval)('Sym' + 'bol.for("' + name + '")');
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Silences this:

Warning: G] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]

    compat/test/browser/testUtils.js:11:41:
      11 │ ...ction.prototype.toString.call(eval('Symbol.for')).match(/\[nati...
         ╵                                  ~~~~

  You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval

Warning: G] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]

    compat/test/browser/testUtils.js:15:12:
      15 │       out = eval('Sym' + 'bol.for("' + name + '")');
         ╵             ~~~~

  You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval

Warning: G] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]

    compat/test/browser/testUtils.js:11:41:
      11 │ ...ction.prototype.toString.call(eval('Symbol.for')).match(/\[nati...
         ╵                                  ~~~~

  You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval

Warning: G] Using direct eval with a bundler is not recommended and may cause problems [direct-eval]

    compat/test/browser/testUtils.js:15:12:
      15 │       out = eval('Sym' + 'bol.for("' + name + '")');
         ╵             ~~~~

  You can read more about direct eval and bundling here: https://esbuild.github.io/link/direct-eval

Comment on lines +4 to +9
equalNode(node: Node | null, message?: string): void;
called: Assertion;
calledOnce: Assertion;
calledTwice: Assertion;
calledWith(...args: any[]): Assertion;
calledWithMatch(...args: Record<string, unknown>[]): Assertion;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's still a few missing, but this should at least cut down on the number of squiggles.

@coveralls
Copy link

Coverage Status

coverage: 99.609%. remained the same
when pulling c38e437 on chore/test-types-and-warnings
into 4ab4b99 on main.

@rschristian rschristian merged commit d18ac9f into main May 2, 2024
@rschristian rschristian deleted the chore/test-types-and-warnings branch May 2, 2024 06:08
@JoviDeCroock JoviDeCroock mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants