This commit is contained in:
2024-11-28 23:08:17 +01:00
parent 8895fde030
commit 0dda8e760c
16116 changed files with 2866428 additions and 71 deletions

26
node_modules/eslint-plugin-cypress/tests/config.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
/* global describe, it, expect */
'use strict'
const globals = require('globals')
const config = require('../lib/flat.js')
describe('globals languageOptions', () => {
const languageOptions = config.configs.globals.languageOptions
it('should not mutate globals', () => {
expect(globals.browser).not.toHaveProperty('cy')
expect(globals.mocha).not.toHaveProperty('cy')
})
it('should include other globals', () => {
expect(languageOptions.globals).toEqual(expect.objectContaining(globals.browser))
expect(languageOptions.globals).toEqual(expect.objectContaining(globals.mocha))
})
it('should include cypress globals', () => {
expect(languageOptions.globals).toEqual(expect.objectContaining({
cy: false,
Cypress: false,
}))
})
})