release-2021-01-28 packages/config-loader/src/loader.ts:70

Remove reference to `env?: string;` and usages in `loader.test.ts`

Signed-off-by: Colton Padden <colton.padden@fastmail.com>
This commit is contained in:
Colton Padden
2021-12-14 13:39:17 -05:00
parent 8a986a3e04
commit e56c95a941
2 changed files with 0 additions and 9 deletions
@@ -119,7 +119,6 @@ describe('loadConfig', () => {
loadConfig({
configRoot: '/root',
configTargets: [],
env: 'production',
}),
).resolves.toEqual({
appConfigs: [
@@ -146,7 +145,6 @@ describe('loadConfig', () => {
loadConfig({
configRoot: '/root',
configTargets: [{ url: configUrl }],
env: 'production',
remote: {
reloadIntervalSeconds: 30,
},
@@ -175,7 +173,6 @@ describe('loadConfig', () => {
{ path: '/root/app-config.yaml' },
{ path: '/root/app-config2.yaml' },
],
env: 'production',
}),
).resolves.toEqual({
appConfigs: [
@@ -208,7 +205,6 @@ describe('loadConfig', () => {
loadConfig({
configRoot: '/root',
configTargets: [{ path: '/root/app-config.yaml' }],
env: 'production',
}),
).resolves.toEqual({
appConfigs: [
@@ -234,7 +230,6 @@ describe('loadConfig', () => {
{ path: '/root/app-config.yaml' },
{ path: '/root/app-config.development.yaml' },
],
env: 'development',
}),
).resolves.toEqual({
appConfigs: [
@@ -273,7 +268,6 @@ describe('loadConfig', () => {
loadConfig({
configRoot: '/root',
configTargets: [{ path: '/root/app-config.substitute.yaml' }],
env: 'development',
}),
).resolves.toEqual({
appConfigs: [
-3
View File
@@ -62,9 +62,6 @@ export type LoadConfigOptions = {
// Paths to load config files from. Configs from earlier paths have lower priority.
configTargets: ConfigTarget[];
/** @deprecated This option has been removed */
env?: string;
/**
* Custom environment variable loading function
*