@ harnesed- ts/ core (韩语)
无驱动核心 : Query, (中文(简体) ), Selector, (中文(简体) ), ComponentHarness,装饰者
驾驶员登记册, configure(),匹配器执行, 和Vite和
Babel插件以及降低标准装饰的节点和邦加载器.
取决于没有司机。 安装一个驱动程序
@harnessed-ts/dom 或者说
@harnessed-ts/playwright。 。 。 .
// tsconfig.json — the three options decorators need
{ "extends": "@harnessed-ts/core/tsconfig.json" }
// vite.config.ts / vitest.config.ts — the transform they need
import { harnessedDecorators } from '@harnessed-ts/core/vite'
export default defineConfig({ plugins: [harnessedDecorators(), react()] })
// babel.config.cjs — an app whose own decorators are legacy (Ember)
plugins: [require.resolve('@harnessed-ts/core/babel') /* , …the app's plugins */]
# node:test — strips types, lowers decorators and compiles JSX with esbuild
node --test --import @harnessed-ts/core/register
# bunfig.toml — bun test, whatever experimentalDecorators the tsconfig sets
[test]
preload = ["@harnessed-ts/core/bun"]
全向导 跨干流保证 API: 利用的读取器。 。 。 .
麻省理工学院 乔·高德特 徐杰