mirror of
https://github.com/unraid/api.git
synced 2025-12-31 13:39:52 -06:00
fix: remove uneeded env variable
This commit is contained in:
@@ -18,9 +18,9 @@
|
|||||||
"tsc": "tsc --noEmit",
|
"tsc": "tsc --noEmit",
|
||||||
"lint": "eslint --flag unstable_ts_config --config .eslintrc.ts src/",
|
"lint": "eslint --flag unstable_ts_config --config .eslintrc.ts src/",
|
||||||
"lint:fix": "eslint --flag unstable_ts_config --fix --config .eslintrc.ts src/",
|
"lint:fix": "eslint --flag unstable_ts_config --fix --config .eslintrc.ts src/",
|
||||||
"test:watch": "DOTENV_CONFIG_PATH=./.env.test NODE_ENV=test vitest --pool=forks",
|
"test:watch": "vitest --pool=forks",
|
||||||
"test": "DOTENV_CONFIG_PATH=./.env.test NODE_ENV=test vitest run --pool=forks",
|
"test": "vitest run --pool=forks",
|
||||||
"coverage": "DOTENV_CONFIG_PATH=./.env.test NODE_ENV=test vitest run --coverage",
|
"coverage": "vitest run --pool=forks --coverage",
|
||||||
"release": "standard-version",
|
"release": "standard-version",
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"container:build": "./scripts/dc.sh build dev",
|
"container:build": "./scripts/dc.sh build dev",
|
||||||
|
|||||||
6
api/src/__test__/setup/env-setup.ts
Normal file
6
api/src/__test__/setup/env-setup.ts
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
import { config } from 'dotenv';
|
||||||
|
config({
|
||||||
|
path: './.env.test',
|
||||||
|
debug: false,
|
||||||
|
encoding: 'utf-8',
|
||||||
|
})
|
||||||
@@ -48,7 +48,6 @@ export const KEEP_ALIVE_INTERVAL_MS = THREE_MINUTES_MS; // This is set to 45 sec
|
|||||||
* Graphql link.
|
* Graphql link.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
export const JWKS_LOCAL_PAYLOAD: JSONWebKeySet = {
|
export const JWKS_LOCAL_PAYLOAD: JSONWebKeySet = {
|
||||||
keys: [
|
keys: [
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable */
|
|
||||||
import * as types from './graphql.js';
|
import * as types from './graphql.js';
|
||||||
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
import type { TypedDocumentNode as DocumentNode } from '@graphql-typed-document-node/core';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
/* eslint-disable */
|
|
||||||
import { z } from 'zod'
|
import { z } from 'zod'
|
||||||
import { AccessUrlInput, ArrayCapacityBytesInput, ArrayCapacityInput, ClientType, ConfigErrorState, DashboardAppsInput, DashboardArrayInput, DashboardCaseInput, DashboardConfigInput, DashboardDisplayInput, DashboardInput, DashboardOsInput, DashboardServiceInput, DashboardServiceUptimeInput, DashboardTwoFactorInput, DashboardTwoFactorLocalInput, DashboardTwoFactorRemoteInput, DashboardVarsInput, DashboardVersionsInput, DashboardVmsInput, EventType, Importance, NetworkInput, NotificationInput, NotificationStatus, PingEventSource, RegistrationState, RemoteAccessEventActionType, RemoteAccessInput, RemoteGraphQLClientInput, RemoteGraphQLEventType, RemoteGraphQLServerInput, ServerStatus, URL_TYPE, UpdateType } from '@app/graphql/generated/client/graphql'
|
import { AccessUrlInput, ArrayCapacityBytesInput, ArrayCapacityInput, ClientType, ConfigErrorState, DashboardAppsInput, DashboardArrayInput, DashboardCaseInput, DashboardConfigInput, DashboardDisplayInput, DashboardInput, DashboardOsInput, DashboardServiceInput, DashboardServiceUptimeInput, DashboardTwoFactorInput, DashboardTwoFactorLocalInput, DashboardTwoFactorRemoteInput, DashboardVarsInput, DashboardVersionsInput, DashboardVmsInput, EventType, Importance, NetworkInput, NotificationInput, NotificationStatus, PingEventSource, RegistrationState, RemoteAccessEventActionType, RemoteAccessInput, RemoteGraphQLClientInput, RemoteGraphQLEventType, RemoteGraphQLServerInput, ServerStatus, URL_TYPE, UpdateType } from '@app/graphql/generated/client/graphql'
|
||||||
|
|
||||||
|
|||||||
@@ -66,8 +66,11 @@ export default defineConfig(({ mode }) => {
|
|||||||
reporter: ['text', 'json', 'html'],
|
reporter: ['text', 'json', 'html'],
|
||||||
},
|
},
|
||||||
clearMocks: true,
|
clearMocks: true,
|
||||||
setupFiles: ['src/__test__/setup/keyserver-mock.ts', 'dotenv/config'],
|
setupFiles: ['src/__test__/setup/env-setup.ts', 'src/__test__/setup/keyserver-mock.ts',],
|
||||||
exclude: ['deploy/', 'node_modules/'],
|
exclude: ['deploy/', 'node_modules/'],
|
||||||
|
env: {
|
||||||
|
NODE_ENV: 'test',
|
||||||
|
}
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user