@platformatic/metaconfig
Advanced tools
Comparing version 0.41.0 to 0.41.1
{ | ||
"name": "@platformatic/metaconfig", | ||
"version": "0.41.0", | ||
"version": "0.41.1", | ||
"main": "metaconfig.js", | ||
@@ -5,0 +5,0 @@ "description": "Manage mulitple configuration versions at the same time", |
@@ -116,2 +116,36 @@ 'use strict' | ||
test('removes db.dashboard if it exists', async (t) => { | ||
const version = '0.40.0' | ||
{ | ||
const meta = new FromZeroEighteenToWillSee({ | ||
version, | ||
config: { db: { dashboard: true } } | ||
}) | ||
t.equal('dashboard' in meta.config.db, true) | ||
const upped = meta.up() | ||
t.equal('dashboard' in upped.config.db, false) | ||
} | ||
{ | ||
const meta = new FromZeroEighteenToWillSee({ | ||
version, | ||
config: { db: { dashboard: false } } | ||
}) | ||
t.equal('dashboard' in meta.config.db, true) | ||
const upped = meta.up() | ||
t.equal('dashboard' in upped.config.db, false) | ||
} | ||
{ | ||
const meta = new FromZeroEighteenToWillSee({ | ||
version, | ||
config: { db: {} } | ||
}) | ||
t.equal('dashboard' in meta.config.db, false) | ||
const upped = meta.up() | ||
t.equal('dashboard' in upped.config.db, false) | ||
} | ||
}) | ||
test('upgrade patch versions', async (t) => { | ||
@@ -118,0 +152,0 @@ const FromZeroEighteenToWillSee = proxyquire('../versions/from-zero-eighteen-to-will-see', { |
@@ -39,2 +39,3 @@ 'use strict' | ||
delete config.plugins?.hotReload | ||
delete config.db?.dashboard | ||
@@ -41,0 +42,0 @@ return new FromZeroEighteenToWillSee({ config, path: this.path, format: this.format, version }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
70264
1954