Update test framework: fix run_tests.py to support all test files, add auto-import-check for test files

This commit is contained in:
qiaoxinjiu
2026-05-09 15:11:30 +08:00
parent eb053a347f
commit eaba8328da
21739 changed files with 2236758 additions and 719 deletions

7
node_modules/swr/dist/immutable/index.d.mts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import * as ___index from '../index/index.mjs';
import { Middleware } from '../index/index.mjs';
declare const immutable: Middleware;
declare const useSWRImmutable: ___index.SWRHook;
export { useSWRImmutable as default, immutable };

7
node_modules/swr/dist/immutable/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,7 @@
import * as ___index from '../index/index.js';
import { Middleware } from '../index/index.js';
declare const immutable: Middleware;
declare const useSWRImmutable: ___index.SWRHook;
export { useSWRImmutable as default, immutable };

21
node_modules/swr/dist/immutable/index.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
Object.defineProperty(exports, '__esModule', { value: true });
var useSWR = require('../index/index.js');
var index_js = require('../_internal/index.js');
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
var useSWR__default = /*#__PURE__*/_interopDefault(useSWR);
const immutable = (useSWRNext)=>(key, fetcher, config)=>{
// Always override all revalidate options.
config.revalidateOnFocus = false;
config.revalidateIfStale = false;
config.revalidateOnReconnect = false;
config.refreshInterval = 0;
return useSWRNext(key, fetcher, config);
};
const useSWRImmutable = index_js.withMiddleware(useSWR__default.default, immutable);
exports.default = useSWRImmutable;
exports.immutable = immutable;

14
node_modules/swr/dist/immutable/index.mjs generated vendored Normal file
View File

@@ -0,0 +1,14 @@
import useSWR from '../index/index.mjs';
import { withMiddleware } from '../_internal/index.mjs';
const immutable = (useSWRNext)=>(key, fetcher, config)=>{
// Always override all revalidate options.
config.revalidateOnFocus = false;
config.revalidateIfStale = false;
config.revalidateOnReconnect = false;
config.refreshInterval = 0;
return useSWRNext(key, fetcher, config);
};
const useSWRImmutable = withMiddleware(useSWR, immutable);
export { useSWRImmutable as default, immutable };