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:
@@ -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: [
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user