wip
This commit is contained in:
@@ -44,7 +44,7 @@ describe('getAppMode', () => {
|
||||
it('falls back to "pre-launch" and logs when NEXT_PUBLIC_GRIDPILOT_MODE is invalid in production', () => {
|
||||
const consoleError = vi.spyOn(console, 'error').mockImplementation(() => {});
|
||||
|
||||
process.env.NEXT_PUBLIC_GRIDPILOT_MODE = 'invalid-mode';
|
||||
process.env.NEXT_PUBLIC_GRIDPILOT_MODE = 'invalid-mode' as any;
|
||||
|
||||
const mode = getAppMode();
|
||||
|
||||
@@ -56,7 +56,7 @@ describe('getAppMode', () => {
|
||||
|
||||
it('throws in development when NEXT_PUBLIC_GRIDPILOT_MODE is invalid', () => {
|
||||
(process.env as any).NODE_ENV = 'development';
|
||||
process.env.NEXT_PUBLIC_GRIDPILOT_MODE = 'invalid-mode';
|
||||
process.env.NEXT_PUBLIC_GRIDPILOT_MODE = 'invalid-mode' as any;
|
||||
|
||||
expect(() => getAppMode()).toThrowError(/Invalid NEXT_PUBLIC_GRIDPILOT_MODE/);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user