Files
apophis-fastify/src/cli/__fixtures__/legacy-config/apophis.config.js
T

37 lines
1017 B
JavaScript
Raw Normal View History

/**
* LEGACY APOPHIS configuration (old-style, for migration tests).
* This uses deprecated field names that should be detected by `apophis migrate`.
*/
export default {
// Deprecated: 'mode' used to be 'testMode'
testMode: "verify",
// Deprecated: 'profiles' used to be 'testProfiles'
testProfiles: {
quick: {
name: "quick",
// Deprecated: 'preset' used to be 'usesPreset'
usesPreset: "safe-ci",
// Deprecated: 'routes' used to be 'routeFilter'
routeFilter: ["GET /legacy"],
},
},
// Deprecated: 'presets' used to be 'testPresets'
testPresets: {
"safe-ci": {
name: "safe-ci",
// Deprecated: 'depth' used to be 'testDepth'
testDepth: "quick",
// Deprecated: 'timeout' used to be 'maxDuration'
maxDuration: 5000,
},
},
// Deprecated: 'environments' used to be 'envPolicies'
envPolicies: {
local: {
name: "local",
// Deprecated: 'allowVerify' used to be 'canVerify'
canVerify: true,
},
},
};