mirror of
https://github.com/cypress-io/cypress.git
synced 2026-05-13 19:09:03 -05:00
update config package tests to reflect appropriate path
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
exports['config/lib/index .getBreakingKeys returns list of breaking config keys 1'] = [
|
||||
exports['config/src/index .getBreakingKeys returns list of breaking config keys 1'] = [
|
||||
"blacklistHosts",
|
||||
"componentFolder",
|
||||
"experimentalComponentTesting",
|
||||
@@ -17,7 +17,7 @@ exports['config/lib/index .getBreakingKeys returns list of breaking config keys
|
||||
"testFiles"
|
||||
]
|
||||
|
||||
exports['config/lib/index .getDefaultValues returns list of public config keys 1'] = {
|
||||
exports['config/src/index .getDefaultValues returns list of public config keys 1'] = {
|
||||
"animationDistanceThreshold": 5,
|
||||
"baseUrl": null,
|
||||
"blockHosts": null,
|
||||
@@ -94,7 +94,7 @@ exports['config/lib/index .getDefaultValues returns list of public config keys 1
|
||||
"xhrRoute": "/xhrs/"
|
||||
}
|
||||
|
||||
exports['config/lib/index .getDefaultValues returns list of public config keys for selected testing type 1'] = {
|
||||
exports['config/src/index .getDefaultValues returns list of public config keys for selected testing type 1'] = {
|
||||
"animationDistanceThreshold": 5,
|
||||
"baseUrl": null,
|
||||
"blockHosts": null,
|
||||
@@ -172,7 +172,7 @@ exports['config/lib/index .getDefaultValues returns list of public config keys f
|
||||
"specPattern": "cypress/e2e/**/*.cy.{js,jsx,ts,tsx}"
|
||||
}
|
||||
|
||||
exports['config/lib/index .getPublicConfigKeys returns list of public config keys 1'] = [
|
||||
exports['config/src/index .getPublicConfigKeys returns list of public config keys 1'] = [
|
||||
"animationDistanceThreshold",
|
||||
"arch",
|
||||
"baseUrl",
|
||||
|
||||
@@ -103,18 +103,18 @@ exports['null instead of a number'] = {
|
||||
"type": "one of these values: 1, 2, 3"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isValidClientCertificatesSet returns error message for certs not passed as an array array 1'] = {
|
||||
exports['config/src/validation .isValidClientCertificatesSet returns error message for certs not passed as an array array 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": "1",
|
||||
"type": "a positive number or null or an object with keys \"openMode\" and \"runMode\" with values of numbers or nulls"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isValidClientCertificatesSet returns error message for certs object without url 1'] = {
|
||||
exports['config/src/validation .isValidClientCertificatesSet returns error message for certs object without url 1'] = {
|
||||
"key": "clientCertificates[0].url",
|
||||
"type": "a URL matcher"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isValidBrowser passes valid browsers and forms error messages for invalid ones isValidBrowser 1'] = {
|
||||
exports['config/src/validation .isValidBrowser passes valid browsers and forms error messages for invalid ones isValidBrowser 1'] = {
|
||||
"name": "isValidBrowser",
|
||||
"behavior": [
|
||||
{
|
||||
@@ -183,43 +183,43 @@ exports['config/lib/validation .isValidBrowser passes valid browsers and forms e
|
||||
]
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isPlainObject returns error message when value is a not an object 1'] = {
|
||||
exports['config/src/validation .isPlainObject returns error message when value is a not an object 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": 1,
|
||||
"type": "a plain object"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isNumber returns error message when value is a not a number 1'] = {
|
||||
exports['config/src/validation .isNumber returns error message when value is a not a number 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": "string",
|
||||
"type": "a number"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isNumberOrFalse returns error message when value is a not number or false 1'] = {
|
||||
exports['config/src/validation .isNumberOrFalse returns error message when value is a not number or false 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": null,
|
||||
"type": "a number or false"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isBoolean returns error message when value is a not a string 1'] = {
|
||||
exports['config/src/validation .isBoolean returns error message when value is a not a string 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": 1,
|
||||
"type": "a string"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isString returns error message when value is a not a string 1'] = {
|
||||
exports['config/src/validation .isString returns error message when value is a not a string 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": 1,
|
||||
"type": "a string"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isArray returns error message when value is a non-array 1'] = {
|
||||
exports['config/src/validation .isArray returns error message when value is a non-array 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": 1,
|
||||
"type": "an array"
|
||||
}
|
||||
|
||||
exports['config/lib/validation .isStringOrFalse returns error message when value is neither string nor false 1'] = {
|
||||
exports['config/src/validation .isStringOrFalse returns error message when value is neither string nor false 1'] = {
|
||||
"key": "mockConfigKey",
|
||||
"value": null,
|
||||
"type": "a string or false"
|
||||
|
||||
@@ -8,7 +8,7 @@ import * as configUtil from '../src/index'
|
||||
chai.use(sinonChai)
|
||||
const { expect } = chai
|
||||
|
||||
describe('config/lib/index', () => {
|
||||
describe('config/src/index', () => {
|
||||
describe('.allowed', () => {
|
||||
it('returns filter config only containing allowed keys', () => {
|
||||
const keys = configUtil.allowed({
|
||||
|
||||
@@ -3,7 +3,7 @@ import { expect } from 'chai'
|
||||
|
||||
import * as validation from '../src/validation'
|
||||
|
||||
describe('config/lib/validation', () => {
|
||||
describe('config/src/validation', () => {
|
||||
const mockKey = 'mockConfigKey'
|
||||
|
||||
describe('.isValidClientCertificatesSet', () => {
|
||||
|
||||
Reference in New Issue
Block a user