diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-05 14:44:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-05 14:44:01 -0500 |
commit | 95a4c94b8131b737d8f160c582a4acfe2b65e0f8 (patch) | |
tree | 12f54464d114706be83a5d2742d95cc5ee966c2a /eslint.config.js | |
parent | 2b97b6bbcfc67c234b86d41451aac7cdd778e855 (diff) | |
download | jquery-95a4c94b8131b737d8f160c582a4acfe2b65e0f8.tar.gz jquery-95a4c94b8131b737d8f160c582a4acfe2b65e0f8.zip |
Tests: reuse browser workers in BrowserStack tests (#5428)
- reuse BrowserStack workers.
- add support for "latest" and "latest-1" in browser version filters
- add support for specifying non-final browser versions, such as beta versions
- more accurate eslint for files in test/runner
- switched `--no-isolate` command flag to `--isolate`. Now that browser instances are shared, it made more sense to me to default to no isolation unless specified. This turned out to be cleaner because the only place we isolate is in browserstack.yml.
- fixed an issue with retries where it wasn't always waiting for the retried test run
- enable strict mode in test yargs command
Diffstat (limited to 'eslint.config.js')
-rw-r--r-- | eslint.config.js | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/eslint.config.js b/eslint.config.js index dabff3157..952d39c71 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -21,8 +21,7 @@ export default [ "test/node_smoke_tests/commonjs/**", "test/node_smoke_tests/module/**", "test/promises_aplus_adapters/**", - "test/middleware-mockserver.cjs", - "test/runner/**/*.js" + "test/middleware-mockserver.cjs" ], languageOptions: { globals: { @@ -35,13 +34,6 @@ export default [ } }, - { - files: [ "test/runner/listeners.js" ], - languageOptions: { - sourceType: "script" - } - }, - // Source { files: [ "src/**" ], @@ -224,6 +216,29 @@ export default [ { files: [ + "test/runner/**/*.js" + ], + languageOptions: { + globals: { + ...globals.node + }, + sourceType: "module" + }, + rules: { + ...jqueryConfig.rules + } + }, + + { + files: [ "test/runner/listeners.js" ], + languageOptions: { + ecmaVersion: 5, + sourceType: "script" + } + }, + + { + files: [ "test/data/testrunner.js", "test/data/core/jquery-iterability-transpiled-es6.js" ], |