mirror of
https://github.com/langgenius/dify.git
synced 2026-08-14 20:49:51 +08:00
chore: upgrade Vite+ to 0.2.9 (#40762)
This commit is contained in:
parent
3cd23d4ef8
commit
0f63a05d04
5
.vscode/settings.example.json
vendored
5
.vscode/settings.example.json
vendored
@ -4,7 +4,6 @@
|
||||
|
||||
"tailwindCSS.experimental.configFile": "web/app/styles/globals.css",
|
||||
|
||||
// Format
|
||||
"[javascript]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
|
||||
"[javascriptreact]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
|
||||
"[typescript]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
|
||||
@ -25,9 +24,9 @@
|
||||
"[handlebars]": { "editor.defaultFormatter": "oxc.oxc-vscode" },
|
||||
"editor.formatOnSave": true,
|
||||
"editor.formatOnSaveMode": "file",
|
||||
"oxc.fmt.configPath": "./vite.config.ts",
|
||||
"oxc.disableNestedConfig": true,
|
||||
"oxc.fmt.disableNestedConfig": true,
|
||||
|
||||
// Lint fix
|
||||
"eslint.useFlatConfig": true,
|
||||
"eslint.validate": ["json", "jsonc", "markdown", "yaml", "toml"],
|
||||
"editor.codeActionsOnSave": {
|
||||
|
||||
@ -2,7 +2,7 @@ import type { CommandEntry } from './generate-command-tree.js'
|
||||
import { existsSync, mkdirSync, mkdtempSync, readFileSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import {
|
||||
buildTree,
|
||||
discoverCommands,
|
||||
|
||||
@ -3,7 +3,7 @@ import { chmodSync, mkdtempSync, readFileSync, rmSync, writeFileSync } from 'nod
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
|
||||
const SCRIPT = fileURLToPath(new URL('./install-cli.sh', import.meta.url))
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
|
||||
const SCRIPT = fileURLToPath(new URL('./install-r2.ps1', import.meta.url))
|
||||
const hasPwsh = spawnSync('pwsh', ['-v'], { encoding: 'utf8' }).status === 0
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
|
||||
const SCRIPT = fileURLToPath(new URL('./install-r2.sh', import.meta.url))
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
|
||||
const SCRIPT = fileURLToPath(new URL('./install.ps1', import.meta.url))
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { execFileSync } from 'node:child_process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { FIXTURE_COMPAT, pkgManifestEnv } from '../test/fixtures/pkg-manifest'
|
||||
|
||||
const SCRIPT = fileURLToPath(new URL('./release-naming.mjs', import.meta.url))
|
||||
|
||||
@ -3,7 +3,7 @@ import { mkdtempSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { FIXTURE_COMPAT, pkgManifestEnv } from '../test/fixtures/pkg-manifest'
|
||||
|
||||
const SCRIPT = fileURLToPath(new URL('./release-r2-edge.mjs', import.meta.url))
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { spawnSync } from 'node:child_process'
|
||||
import { fileURLToPath } from 'node:url'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
|
||||
const SCRIPT = fileURLToPath(new URL('./release-r2-publish.sh', import.meta.url))
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { StubServer } from '@test/fixtures/stub-server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { AccountSessionsClient } from './account-sessions.js'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { StubServer } from '@test/fixtures/stub-server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { AccountClient } from './account.js'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { StubServer } from '@test/fixtures/stub-server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { AppDslClient } from './app-dsl.js'
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ import { join } from 'node:path'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { dump, load } from 'js-yaml'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { loadAppInfoCache } from '@/cache/app-info'
|
||||
import { ENV_CACHE_DIR } from '@/store/dir'
|
||||
import { CACHE_APP_INFO, cachePath, getCache } from '@/store/manager'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { selectAppReader, SubjectKind, subjectOf } from './app-reader'
|
||||
import { AppsClient } from './apps'
|
||||
import { PermittedExternalAppsClient } from './permitted-external-apps'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { DifyMock } from '@test/fixtures/dify-mock/server'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { AppRunClient, buildRunBody } from './app-run.js'
|
||||
|
||||
describe('buildRunBody', () => {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { StubServer } from '@test/fixtures/stub-server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { AppsClient } from './apps.js'
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ import { Buffer } from 'node:buffer'
|
||||
import * as http from 'node:http'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isBaseError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { DEFAULT_CLIENT_ID, DeviceFlowApi } from './oauth-device.js'
|
||||
|
||||
@ -4,7 +4,7 @@ import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { FileUploadClient } from './file-upload.js'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { StubServer } from '@test/fixtures/stub-server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { MembersClient } from './members.js'
|
||||
import { WorkspacesClient } from './workspaces.js'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { DifyMock } from '@test/fixtures/dify-mock/server'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { MetaClient } from './meta.js'
|
||||
|
||||
describe('MetaClient', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { PermittedExternalAppsClient } from './permitted-external-apps'
|
||||
|
||||
function fakeHttp() {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { StubServer } from '@test/fixtures/stub-server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { WorkspacesClient } from './workspaces.js'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { AccountContext } from './hosts'
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { MemStore } from '@test/fixtures/mem-store'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { AccountContextSchema, notLoggedInError, Registry, RegistrySchema } from './hosts'
|
||||
|
||||
describe('RegistrySchema', () => {
|
||||
|
||||
2
cli/src/cache/app-info.test.ts
vendored
2
cli/src/cache/app-info.test.ts
vendored
@ -3,7 +3,7 @@ import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { dump, load } from 'js-yaml'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { ENV_CACHE_DIR } from '@/store/dir'
|
||||
import { CACHE_APP_INFO, cachePath, getCache } from '@/store/manager'
|
||||
import { platform } from '@/sys/index'
|
||||
|
||||
2
cli/src/cache/compat-store.test.ts
vendored
2
cli/src/cache/compat-store.test.ts
vendored
@ -1,7 +1,7 @@
|
||||
import { mkdtemp, rm } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { ENV_CACHE_DIR } from '@/store/dir'
|
||||
import { CACHE_COMPAT, getCache } from '@/store/manager'
|
||||
import { loadCompatStore } from './compat-store'
|
||||
|
||||
2
cli/src/cache/nudge-store.test.ts
vendored
2
cli/src/cache/nudge-store.test.ts
vendored
@ -2,7 +2,7 @@ import { mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { dirname, join } from 'node:path'
|
||||
import { load } from 'js-yaml'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { ENV_CACHE_DIR } from '@/store/dir'
|
||||
import { CACHE_NUDGE, cachePath, getCache } from '@/store/manager'
|
||||
import { loadNudgeStore, WARN_INTERVAL_MS } from './nudge-store'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { resolveRetryAttempts } from './global-flags'
|
||||
|
||||
describe('resolveRetryAttempts', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { CommandConstructor } from '@/framework/command'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import Login from '@/commands/auth/login/index'
|
||||
import DescribeApp from '@/commands/describe/app/index'
|
||||
import ExportStudioApp from '@/commands/export/studio-app/index'
|
||||
|
||||
@ -6,7 +6,7 @@ import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { MemStore } from '@test/fixtures/mem-store'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { Registry } from '@/auth/hosts'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { listAllSessions, runDevicesList, runDevicesRevoke } from './devices.js'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { Registry } from '@/auth/hosts'
|
||||
import { stringifyOutput, table } from '@/framework/output'
|
||||
import { runAuthList } from './list'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { Clock } from './device-flow'
|
||||
import type { CodeResponse, PollRequest, PollResult, PollSuccess } from '@/api/oauth-device'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { BaseError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import {
|
||||
|
||||
@ -6,7 +6,7 @@ import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { MemStore } from '@test/fixtures/mem-store'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { DeviceFlowApi } from '@/api/oauth-device'
|
||||
import { createHttpClient } from '@/http/client'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
|
||||
@ -2,7 +2,7 @@ import { readFile } from 'node:fs/promises'
|
||||
import { join } from 'node:path'
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { MemStore } from '@test/fixtures/mem-store'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { Registry } from '@/auth/hosts'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runLogout } from './logout.js'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { Registry } from '@/auth/hosts'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runWhoami } from './whoami'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { isBaseError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { getConfigurationStore } from '@/store/manager'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { loadConfig } from '@/config/config-loader'
|
||||
import { isBaseError } from '@/errors/base'
|
||||
import { ErrorCode, ExitCode } from '@/errors/codes'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { loadConfig } from '@/config/config-loader'
|
||||
import { isBaseError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { getConfigurationStore } from '@/store/manager'
|
||||
import { runConfigView } from './run'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
/// <reference types="vite/client" />
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { isExcludedCommandPath } from '@/framework/command-fs'
|
||||
|
||||
const INDEX_MODULES = import.meta.glob<{ default?: unknown }>('./**/index.ts', { eager: true })
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runCreateMember } from './run.js'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runDeleteMember } from './run.js'
|
||||
|
||||
|
||||
@ -5,7 +5,7 @@ import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { loadAppInfoCache } from '@/cache/app-info'
|
||||
import { formatted, stringifyOutput } from '@/framework/output'
|
||||
import { ENV_CACHE_DIR } from '@/store/dir'
|
||||
|
||||
2
cli/src/commands/env/list/run-list.test.ts
vendored
2
cli/src/commands/env/list/run-list.test.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { runEnvList } from './run-list'
|
||||
|
||||
const stub =
|
||||
|
||||
@ -5,7 +5,7 @@ import { join } from 'node:path'
|
||||
import { DSL_YAML } from '@test/fixtures/dify-mock/scenarios'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runExportApp } from './run.js'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { zSupportedAppType } from '@dify/contracts/api/openapi/zod.gen'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
|
||||
// The `get app --mode` whitelist is derived from this generated enum (see index.ts).
|
||||
// These pins guard the original bug: the CLI must not advertise modes the backend
|
||||
|
||||
@ -3,7 +3,7 @@ import type { ActiveContext } from '@/auth/hosts'
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { stringifyOutput, table } from '@/framework/output'
|
||||
import { AppListOutput } from './handlers.js'
|
||||
import { runGetApp } from './run.js'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { MemberListResponse } from '@dify/contracts/api/openapi/types.gen'
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runGetMember } from './run.js'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { WorkspaceListResponse } from '@dify/contracts/api/openapi/types.gen'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { WorkspaceListOutput, WorkspaceRow } from './handlers'
|
||||
|
||||
function env(): WorkspaceListResponse {
|
||||
|
||||
@ -2,7 +2,7 @@ import type { DifyMock } from '@test/fixtures/dify-mock/server'
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { stringifyOutput, table } from '@/framework/output'
|
||||
import { WorkspaceListOutput } from './handlers.js'
|
||||
import { EMPTY_WORKSPACES_MESSAGE, runGetWorkspace } from './run.js'
|
||||
|
||||
@ -7,7 +7,7 @@ import { join } from 'node:path'
|
||||
import { DSL_YAML } from '@test/fixtures/dify-mock/scenarios'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { AppDslClient } from '@/api/app-dsl'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { ZERO } from '@/util/uuid.js'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import { afterEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { AppRunClient } from '@/api/app-run'
|
||||
import { AppsClient } from '@/api/apps'
|
||||
import { PermittedExternalAppsClient } from '@/api/permitted-external-apps'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import RunApp from './index'
|
||||
|
||||
describe('run app agentGuide', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { ParsedFileFlag } from './file-flags'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { difyFileType, parseFileFlag, resolveFileInputs } from './file-flags'
|
||||
|
||||
describe('parseFileFlag', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { HitlPauseData, HitlPausePayload } from './sse-collector'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { buildHitlExitObject, renderHitlHint } from './hitl-render'
|
||||
|
||||
function payload(overrides: Partial<HitlPauseData> = {}): HitlPausePayload {
|
||||
|
||||
@ -6,7 +6,7 @@ import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { testHttpClient } from '@test/fixtures/http-client'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { loadAppInfoCache } from '@/cache/app-info'
|
||||
import { resumeApp } from '@/commands/resume/app/run'
|
||||
import { ENV_CACHE_DIR } from '@/store/dir'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { HttpClientError } from '@/errors/base'
|
||||
import type { SseEvent } from '@/http/sse'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { collect, collectorFor, decodeStreamError, HitlPauseError } from './sse-collector'
|
||||
|
||||
const enc = new TextEncoder()
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { SseEvent } from '@/http/sse'
|
||||
import { Buffer } from 'node:buffer'
|
||||
import { PassThrough, Writable } from 'node:stream'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { HitlPauseError } from './sse-collector'
|
||||
import { streamPrinterFor } from './stream-handlers'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runSetMember } from './run.js'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { CommandTree } from '@/framework/registry'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { ExitCode } from '@/errors/codes'
|
||||
import { run } from '@/framework/run'
|
||||
import { renderSkill } from '@/help/skill'
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { mkdir, mkdtemp, rm } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { AGENTS, detectAgents } from './registry'
|
||||
|
||||
describe('detectAgents', () => {
|
||||
|
||||
@ -3,7 +3,7 @@ import { existsSync } from 'node:fs'
|
||||
import { mkdir, mkdtemp, readFile, rm, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { renderSkill } from '@/help/skill'
|
||||
import { runSkillsInstall } from './run'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { MemStore } from '@test/fixtures/mem-store'
|
||||
import { beforeEach, describe, expect, it } from 'vitest'
|
||||
import { beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { Registry } from '@/auth/hosts'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runUseAccount } from './use-account'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { beforeEach, describe, expect, it } from 'vitest'
|
||||
import { beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { Registry } from '@/auth/hosts'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
import { runUseHost } from './use-host'
|
||||
|
||||
@ -5,7 +5,7 @@ import type {
|
||||
import type { ActiveContext } from '@/auth/hosts'
|
||||
import type { HttpClient } from '@/http/types'
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { Registry } from '@/auth/hosts'
|
||||
import { selectFromList } from '@/sys/io/select'
|
||||
import { bufferStreams } from '@/sys/io/streams'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import * as info from '@/version/info'
|
||||
import * as probe from '@/version/probe'
|
||||
import Version, { COMPAT_FAIL_EXIT_CODE } from './index'
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { YamlStore } from '@/store/store'
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { isBaseError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { getConfigurationStore } from '@/store/manager'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { isBaseError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { getKey, knownKeyNames, knownKeys, lookupKey, setKey, unsetKey } from './keys'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { CONFIG_FILE_NAME } from '@/store/manager'
|
||||
import { ALLOWED_FORMATS, ConfigFileSchema, CURRENT_SCHEMA_VERSION, emptyConfig } from './schema'
|
||||
|
||||
|
||||
2
cli/src/env/registry.test.ts
vendored
2
cli/src/env/registry.test.ts
vendored
@ -1,4 +1,4 @@
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { ENV_REGISTRY, getEnv, lookupEnv, resolveEnv } from './registry'
|
||||
|
||||
describe('env registry', () => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { BaseError, HttpClientError, isBaseError, newError, unknownError } from './base'
|
||||
import { ErrorCode, ExitCode } from './codes'
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { ALL_ERROR_CODES, CODE_TO_EXIT_MAP, ErrorCode, ExitCode, exitFor } from './codes'
|
||||
|
||||
describe('error codes', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { ErrorBody } from '@dify/contracts/api/openapi/types.gen'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { setVerbose } from '@/framework/context'
|
||||
import { HttpClientError } from './base'
|
||||
import { ErrorCode } from './codes'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { isCommandIndexPath, isExcludedCommandPath } from './command-fs'
|
||||
|
||||
describe('isExcludedCommandPath', () => {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { FlagDefinition } from './types'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { OutputFormatNotSupportedError, UnsupportedArgValueError } from './errors'
|
||||
|
||||
describe('OutputFormatNotSupportedError', () => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { UnsupportedArgValueError } from './errors'
|
||||
import { Args, Flags, parseArgv } from './flags'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { CommandConstructor } from './command'
|
||||
import type { CommandTree } from './registry'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { Args, Flags } from './flags'
|
||||
import { formatHelp, formatTopLevelHelp } from './help'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { FormattedPrintable, NamePrintable, TablePrintable } from './output'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { OutputFormatNotSupportedError } from './errors'
|
||||
import { formatted, raw, stringifyOutput, table } from './output'
|
||||
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { CommandTree } from './registry'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { Command } from './command'
|
||||
import { findSuggestions, resolveCommand } from './registry'
|
||||
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
import type { CommandConstructor } from './command'
|
||||
import type { CommandTree } from './registry'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { BaseError, HttpClientError, newError } from '@/errors/base'
|
||||
import { ErrorCode, ExitCode } from '@/errors/codes'
|
||||
import { CONTRACT } from '@/help/contract'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { ErrorBody } from '@dify/contracts/api/openapi/types.gen'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { HttpClientError, newError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { CONTRACT } from './contract'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { commandTree } from '@/commands/tree.generated'
|
||||
import { collectCommands } from '@/framework/registry'
|
||||
import { versionInfo } from '@/version/info'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { ENV_REGISTRY } from '@/env/registry'
|
||||
import { findTopic, TOPICS } from './topics'
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { buildBody, isJSONSerializable } from './body.js'
|
||||
|
||||
describe('isJSONSerializable', () => {
|
||||
|
||||
@ -5,7 +5,7 @@ import { mkdtempSync, readFileSync, rmSync } from 'node:fs'
|
||||
import * as https from 'node:https'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterAll, beforeAll, describe, expect, it } from 'vitest'
|
||||
import { afterAll, beforeAll, describe, expect, it } from 'vite-plus/test'
|
||||
import { createHttpClient } from './client.js'
|
||||
|
||||
function generateSelfSignedCert(dir: string): { key: Buffer; cert: Buffer } {
|
||||
|
||||
@ -2,7 +2,7 @@ import type { DifyMock } from '@test/fixtures/dify-mock/server'
|
||||
import type { AddressInfo } from 'node:net'
|
||||
import * as http from 'node:http'
|
||||
import { startMock } from '@test/fixtures/dify-mock/server'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { isBaseError, isHttpClientError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { openAPIBase } from '@/util/host'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { HttpClientError } from '@/errors/base'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { classifyResponse } from './error-mapper'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import type { StubServer } from '@test/fixtures/stub-server'
|
||||
import type { HttpClientError } from '@/errors/base'
|
||||
import { jsonResponder, startStubServer } from '@test/fixtures/stub-server'
|
||||
import { afterEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { isHttpClientError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
import { openAPIBase } from '@/util/host'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
|
||||
const PROXY_KEYS = [
|
||||
'HTTP_PROXY',
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import {
|
||||
classifyRateLimit,
|
||||
MAX_HONORED_WAIT_MS,
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { FetchContext, HttpMethod, ResolvedOptions } from './types.js'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { backoffDelay, isIdempotentRetryMethod, shouldRetry } from './retry.js'
|
||||
|
||||
function ctxFor(method: HttpMethod): FetchContext {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { SseEvent } from './sse'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { eventNameFromDifyData, normalizeDifyStream } from './sse-dify'
|
||||
|
||||
const enc = new TextEncoder()
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { parseSSE } from './sse'
|
||||
|
||||
function streamOf(...chunks: string[]): ReadableStream<Uint8Array> {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { appendSearchParams, joinURL } from './url.js'
|
||||
|
||||
describe('joinURL', () => {
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { isBaseError } from '@/errors/base'
|
||||
import { ExitCode } from '@/errors/codes'
|
||||
import { LIMIT_DEFAULT, LIMIT_MAX, LIMIT_MIN, parseLimit } from './limit'
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import { useTempConfigDir } from '@test/fixtures/config-dir'
|
||||
import { describe, expect, it } from 'vitest'
|
||||
import { describe, expect, it } from 'vite-plus/test'
|
||||
import { loadConfig } from '@/config/config-loader'
|
||||
import { emptyConfig } from '@/config/schema'
|
||||
import { saveConfig } from './config-writer'
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { BaseError } from '@/errors/base'
|
||||
import { ErrorCode } from '@/errors/codes'
|
||||
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
import { beforeEach, describe, expect, it, vi } from 'vitest'
|
||||
import { beforeEach, describe, expect, it, vi } from 'vite-plus/test'
|
||||
|
||||
const passwords = new Map<string, string>()
|
||||
const setPassword = vi.fn()
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
import type { TokenStore } from './token-store'
|
||||
import { describe, expect, it, vi } from 'vitest'
|
||||
import { describe, expect, it, vi } from 'vite-plus/test'
|
||||
import { detectTokenStore, getTokenStore } from './manager'
|
||||
|
||||
function memStore(label: string): TokenStore & { _label: string } {
|
||||
|
||||
@ -2,7 +2,7 @@ import { existsSync, readFileSync, statSync, writeFileSync } from 'node:fs'
|
||||
import { mkdtemp, rm, writeFile } from 'node:fs/promises'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { BadYamlFormatError, ConcurrentAccessError } from './errors'
|
||||
import { YamlStore } from './store'
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import { mkdtempSync, readFileSync, rmSync, writeFileSync } from 'node:fs'
|
||||
import { tmpdir } from 'node:os'
|
||||
import { join } from 'node:path'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vitest'
|
||||
import { afterEach, beforeEach, describe, expect, it } from 'vite-plus/test'
|
||||
import { FileTokenStore } from './token-store'
|
||||
|
||||
describe('FileTokenStore', () => {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user