@magic/test
Changelog
0.3.64
- feat: `initMaplibre(import.meta.url)` makes a real maplibre-gl `Map` constructible in the DOM test environment — installs a fake WebGL2 context (`initWebGL`) plus a `Worker` polyfill (`initWorkerShim`) over `node:worker_threads` that runs the project's maplibre-gl worker bundle in a real worker thread inside an emulated Web Worker scope; the per-project `testfix/` shim directories collapse to `initMaplibre(import.meta.url)` in the test file; `initWebGL()` patches `canvas.getContext('webgl2' | 'webgl')`, `initWorkerShim(workerBundlePath)` installs the worker shim directly.
- feat: more bare globals for maplibre-gl in `initGlobals` — `matchMedia` (its prefersReducedMotion getter probes the bare global; `map.easeTo()`/`flyTo()` call it from Svelte effects, so a missing global threw a ReferenceError mid-flush that aborted the state update and left `{#if map}` children unrendered), `ImageData` (tile pixel decoding), and an own `Document.prototype.body` accessor delegating to the inherited getter (maplibre probes it via getOwnPropertyDescriptor, which finds nothing on happy-dom's prototype chain)
- feat: relative imports from files living inside the compile cache (collector-transformed test files, compiled components) now resolve back against the original source tree — the cache layout mirrors the source layout (cwd-relative 1:1, `node_modules_processed` → `node_modules`), so a sibling that doesn't exist in the cache maps straight to its real location, with the usual `.ts`/`.js`/`.svelte` extension and `index` candidate probing; previously Node resolved such specifiers against the cache dir, found nothing, and the whole test file failed with ERR_MODULE_NOT_FOUND; Svelte targets compile as usual, and unmappable cache paths (`outside/`-anchored absolute paths) or missing targets fall through to normal resolution
- feat: additional browser DOM event globals — `ErrorEvent`, `WheelEvent`, `FocusEvent`, `ProgressEvent`, `AnimationEvent`, `TransitionEvent`, `PopStateEvent`, `HashChangeEvent`, `UIEvent` are now defined on `globalThis` in both the re-attach and full-init paths, alongside the existing `MouseEvent`/`KeyboardEvent`/`PointerEvent` et al.
- feat: more browser globals for DOM-dependent libraries — bare `devicePixelRatio` (maplibre-gl reads it without a `window.` prefix; missing from `globalThis` it was a ReferenceError that aborted Svelte mounts), bare `getComputedStyle` aliased to `window.getComputedStyle` (Svelte out-transitions call the bare global when starting at unmount — previously a ReferenceError that killed the test), and `Animation.cancel()` guarded to match browser behavior: happy-dom throws AbortError when cancelling a finished animation (Svelte transitions call `cancel()` inside `onfinish` to drop the dummy delay animation — the uncaught throw escaped happy-dom's event dispatch and crashed the whole test process); the `animation.finished` promise rejection is also caught so it can't surface as an unhandledRejection that exits the process
- fix: `importFile` returns `undefined` instead of the namespace object for modules without a default export — side-effect helper files (DOM shims, shared fixtures, locks) previously failed the run with E_EMPTY_SUITE, the collector now skips them
- fix: svelte event helpers `input` / `change` / `checked` define `value` / `checked` as writable, matching real browser properties — strict-mode handlers (e.g. input transform hooks) that write `currentTarget.value` no longer throw TypeError
- deps: oxc-parser 0.160.0 → 0.161.0
0.3.63
- fix: improve shutdown signal handling for child processes — spawn child detached so it leads its own process group (POSIX), extract signalChildTree() for clean SIGTERM/SIGKILL dispatch, add .unref() to escalation timer so it doesn't keep the process alive after a clean stop
- fix: prevent event loop starvation during d.ts type checking by running checks sequentially with setImmediate yields instead of Promise.all, bounding signal latency to a single file's check time
0.3.62
- fix: cold-cache race in the compile write queue dropped whole test files — a batch `flush()` triggered by a different file's `write()` consumed the pending entry of an in-flight compile, and the following `flushPath()` no-oped while the batch's `mkdir` + write was still in flight; the caller then wrote the `.map` sidecar (no mkdir of its own) and handed the import URL out before the compiled `.js` landed, so `writeAtomic`'s `open()` ENOENTed on the freshly-raced directory, the import of that component failed, and every test file importing it (e.g. a barrel spec) was silently dropped (198 → 185 tests until the cache warmed); `flushPath` now awaits the in-flight batch flush when its entry was consumed, and `writeMapSidecar` mkdirs the parent like `writeCompiledFile` does
- test: deterministic regression for the `flushPath` contract (batch-consumed entry, pending entry, already-flushed entry) — the batch-consumed case fails 20/20 against the unfixed queue
- api: `WriteQueue` is exported alongside the `writeQueue` singleton (needed to construct controlled-size queues in tests)
0.3.61
- fix: race condition when compiling svelte files
0.3.60
- remove @magic-modules/pre from maybeInjectMagic lib handling
0.3.59
- fix: circular node_modules svelte barrels (e.g. @systemkollektiv/components) could deadlock the whole run when a re-entry crossed an async boundary (ESM resolve hook) that drops the compile-stack context — the re-entry awaited the in-flight compile's own pending promise forever; the cycle break now also fires from the import chain threaded through resolveAndCompileImport, and any remaining pending wait is bounded (60 s) with a loud warning + cycle-break fallback instead of an infinite hang
- fix: the async compile stack is now a true stack (entries are removed on completion) instead of an ever-growing visited set that mis-fired for unrelated siblings
- feat: Vite-style query imports are now explicitly supported in the loader — `?worker&url` / `?url` export the target's file URL as the default export (the worker script is never evaluated, so no `self` dependency and no silent `undefined`), `?worker` exports a factory that fails fast with an actionable error on instantiation, `?raw` / `?inline` export the file contents as a string; unknown query suffixes keep the previous pass-through behavior and query-less specifiers are untouched
- fix: import-path compiles (components compiled only as dependencies of a mount, and barrel-compiled exports) now persist the canonical content — trailing `sourceMappingURL` comment plus the `.map` sidecar — so V8 coverage remaps them to source instead of reporting 0%; a polluted cache no longer needs a manual wipe to recover
- fix: island integrity now also validates absolute `file:` import targets inside the compile cache (node_modules_processed mirrors), wiping or moving a dependency mirror while compiled components survived used to leave a permanently broken island (ERR_MODULE_NOT_FOUND on every mount, never re-healed); such islands now recompile and re-heal
- fix: $app/* detection for the mount page context now runs on the compiled output (raw .svelte source has its imports under `ast.instance`, so source-level AST extraction never matched and `usesApp` was always false) and also matches the shim paths that processImports rewrites `$app/*` to; the `url`/`routeId`/`params`/`data` mount props now actually reach `page` instead of being silently ignored for every component
- fix: the component test `fn` now runs inside the mounted component's $app context (`mount` returns the `ctx`, `executeTest` wraps the `fn` in `runWithContext`); interactions in the test (clicks, form submits) that re-read $app/state now see the test's url/data instead of falling back to the default context mid-render
- test: `MapListLocation`-class regression coverage lives in downstream projects (maplibre `?worker&url` graph + @systemkollektiv barrel); regression test for page context props surviving interaction (PageDataTest); self-test suite green (2941 tests)
0.3.58
- fix: the ESM loader now serves `.svelte.js` files from the compile cache verbatim instead of re-transpiling them — the re-transpiled in-memory source was longer than the on-disk file, so V8 coverage offsets remapped against the on-disk source map produced phantom uncovered statements/branches/functions (some past EOF), capping branch coverage of Svelte projects at ~94% no matter how many tests were added
- test: regression for verbatim serving of cache `.svelte.js` files (plus transpilation of `.svelte.js` files outside the cache, which is unchanged)
- perf: the auto worker pool is capped at 4 workers by default and adapts to system load (halves between 1× and 2× the core count, drops to 1 above that; `MAGIC_TEST_ADAPTIVE=0` or CI disables it) — a test run no longer saturates a 16-core machine
- feat: `--nice` / `MAGIC_TEST_NICE` (default 10): on macOS/Linux the run is wrapped in `nice` when the machine is busy at spawn (1-min load average above half the cores) so the user's own work stays responsive; on an idle machine the suite runs at full speed; `--nice 0` / `MAGIC_TEST_NICE=0` disables throttling
- fix: on a busy machine at spawn the wall-clock budgets are bumped — per-file discovery/import 30 s → 120 s, per-test 30 s → 300 s, worker round-trip backstop 120 s → 600 s — a starved run is slow, not hung; explicit `MAGIC_TEST_DISCOVERY_TIMEOUT` / `MAGIC_TEST_TIMEOUT` / `--timeout` / `MAGIC_TEST_WORKER_TIMEOUT_MS` still win
- fix: the getTestTimeout tests no longer leak their MAGIC_TEST_TIMEOUT mutation into the ambient process env — a leaked delete downgraded every later test in the process to the stock 30 s default
- test: worker-pool, E2E-child and DDL-watchdog deadlines now scale with the load, so the suite stays green on a busy machine (tight contracts unchanged on an idle one)
- perf: components are no longer recompiled on every mount — compileSvelteWithWrite checks the persistent compile cache first (mtime+size fast path, hash authoritative), so an unchanged .svelte file costs a stat instead of a full compile + file write + manifest rewrite; set MAGIC_TEST_COMPILE_CACHE=0 to restore the old always-recompile behavior
- fix: the compile-cache manifest is updated under a cross-process file lock with a fresh disk read inside the lock — concurrent workers could previously clobber each other's entries, silently losing cache entries (phantom misses and duplicate compiles)
- fix: a cached compile is only served when the source hash still matches (hash cache entries are stat-validated, so a rewritten file within one mtime tick is detected) and when its compiled relative imports still exist — deleted sibling components no longer leave stale imports behind
- fix: the compile cache is invalidated when the installed svelte version changes; sources outside the project root (pnpm store, monorepo siblings, /tmp fixtures) are cached under outside/ in the cache directory instead of being scattered into the project tree
- perf: TypeScript transpilation (.ts / .svelte.ts / .mjs) is cached persistently by content hash — a warm run transpiles nothing that a previous run already transpiled
- perf: vite/tsconfig alias resolution is cached per project root (revalidated with 2-3 stat calls per resolve) — removes multi-second tail latency from suite startup on projects with many aliased imports
- perf: happy-dom is loaded lazily and the svelte rune-detection parse is skipped for components without $state( / $derived( call sites
- fix: sharding configuration is no longer exported to the process environment — child processes spawned by tests could inherit a sharded view of the suite
- test: self-tests for the persistent manifest (hit/miss, invalidation, stale sweep, outside/ anchoring), cache-aware compile (no rewrite on hit, css parity, stale-island healing, kill switch), transpile cache, and the alias cache lifecycle
- test: sveltekit navigation tests capture the URL into component state after pushState (instead of reading the page proxy at render time, which the global flush queue could evaluate under a foreign context) and run sequentially with a context reset between tests
0.3.57
- @magic/deep mutated the values passed to is.deep.equal, leading to irregular test results in narrow edge cases
- update dependencies
0.3.56
- fix: rare DDL watchdog flake ("waiting: false") — `globalThis.__DDL` (the 5s-watchdog singleton held by test/lib/svelte/compile/ddl.ts) is now in the isolation skipProps list, so a sibling isolated test's snapshot/restore cycle can no longer delete it mid-test
- fix: snapshot/restore no longer deep-clones `WebAssembly`, `Intl`, `Atomics`, `customElements`, or the shared happy-dom window — deep cloning turned them into broken shells (`WebAssembly.Module is not a constructor`, dead `WeakRef`s inside a cloned window) that restore installed over the real globals
- fix: localStorage/sessionStorage are captured as entries and re-populated into the LIVE storage on restore instead of being replaced by a clone whose private state is empty
- fix: worker postMessage payloads are sanitized recursively (functions nested in a test's result/expect become their source string) — a single unclonable value previously threw DataCloneError and killed the worker mid-batch, losing every remaining test of the file
- fix: the globals detector no longer false-positives on global names inside string/template literals, comments, or as identifier substrings (`globalStartTime`, `windowWidth`, `subprocess.`) — fewer suites routed to unnecessary workers
- test: deterministic regression for the __DDL restore race, storage restore, skipProps additions, and payload sanitization
- feat: `--exclude` / `-e` now also applies to the auto-generated .d.ts type tests — excluded dirs and files are not collected or checked
- feat: .d.ts tests now use types declarations from tsconfig.json of the tested repository
0.3.55
- importing virtual: modules does not crash the test suite, instead an empty module is returned, better than nothing...
0.3.54
- update dependencies
0.3.53
- feat: local c8 replacement — v8 coverage reader with source-map remapping and istanbul text report
- feat: coverage stats + summary output, results-file handoff between processes
- feat: drop c8 dependency, test:native now uses `t --native`
- feat: local coverage via NODE_V8_COVERAGE, add `--native` flag, summary printed after coverage
- feat: cover stats summary, coverage table, results file output
- chore: replace functions with const declarations
- .gitignore: ignore /coverage and /.plans only in top dir
- update dist
0.3.52
- feat: default worker reuse on — a file's isolated tests now run sequentially in one shared worker by default (faster, ~22 s → ~15 s wall time on a 159-test SvelteKit suite). Set `MAGIC_TEST_WORKER_REUSE=0` to force one fresh worker per test (full per-test isolation).
- fix: remove run-tests.sh
- test: silence console.log for info message test
- fix: replace canvas with @napi-rs/canvas
- update dependencies, formatting and linting uses ox toolchain now.
- fix: stop watchdog from pinning test process (f33b2aac)
- bin/lib/registerLoader: avoid deprecated version of mod.register, better error handling (a88b264b)
- src/bin: fix CLI execution checks, use `fs.realpathSync` instead of `urlToFilePath` (cb06d19b)
- feat: type-check .d.ts files in every test run (204d331a)
- add overrides for glob and minimatch (1a556be4)
- pkg, oxlint.config.ts: use @magic/lint, update dependencies (d04b2671)
- src/run.ts: export `getShardForTest` for testing (918dc0aa)
- remove magic-string dependency, comes from svelte (7823d6ca)
0.3.51
- feat: changed usage of `--production` / `-p` flag — reads prod mode from CLI arg instead of `NODE_ENV`, sets `MAGIC_TEST_ENV`; SvelteKit dev/prod sentinels read `MAGIC_TEST_ENV` instead of `NODE_ENV`
- feat: synthesize `$app/env/private` and `$app/env/public` from `src/env.ts` — parses top-level `defineEnvVars` keys from `src/env.ts` (cached per project root), emits temp module files exporting `process.env.<var>` at module-evaluation time
- feat: support remote module URLs and raw string Vite defines — materialize remote `http/https` modules as local cached files; rewrite relative specifiers in remote sources to absolute URLs; keep `http/https` alias targets verbatim; parse Vite define values as JSON when possible, keep raw strings otherwise
- deps: update dependencies
- chore: switch from ESLint to Oxlint
- fix: replace `@typescript-eslint/parser` with `oxc-parser` for static source analysis (import/export extraction, module-state mutation checks, Svelte rune & compiled-output detection). `oxc-parser` is the same parser oxlint is built on, ~3× faster than the previous one.
- chore: update tsconfig for VS Code linting of @types/node types
- chore: remove Travis CI and AppVeyor configs
- docs: add `MAGIC-TEST-SKILL.md` and reference it in README.md
0.3.50
- feat: add -s, --slow, --timing flag to get slow test information
- feat: `has.not` — negated versions of every `has.*` check: `has.not.property`,
- feat: `has.at(index, checks[])` — an array of checks now passes only when
0.3.49
- fix: prevent maximum call stack size exceeded in collectComponentPaths
0.3.48
- perf: component import graphs — per-process memoization of resolved import
- perf: barrel wrappers are now persistent. `compileBarrel` writes the
- perf: `compileSvelteWithWrite` (the warmup path) records its output in the
- perf/robustness: compile-cache writes are atomic (temp + rename), the
- feat: prewarm component graphs before test workers start — a small pool of
- feat: `MAGIC_TEST_WORKER_REUSE=1` — run a file's isolated tests
- fix: svelte-only barrel generation — the per-export compile raced a 30 s
0.3.47
- fix: coverage attribution for .ts/.svelte modules — removed the per-module
- fix: component tests can now mount components with side-effect asset
- fix: compiled output for sources outside the project (e.g. file:-symlinked
- test: regression tests for processImports side-effect handling
0.3.45
- better handling of _unknown_ string in svelte components
- update dependencies
0.3.44
- add sveltekit server store support, allowing sveltekit apps to test server side code paths
0.3.43
- feat: support context factory function in mount() with target/props
- fix(tsLoader): resolve bare package specifiers from CACHE_DIR against real node_modules
- feat: add MAGIC_TEST_VERBOSE_ERRORS for detailed import/runtime diagnostics
- fix: initialize DOM globals before importing test files (main process and workers)
- fix: stop mutating shared ESM failure errors in import error messages
0.3.42
- src/run/lib/prepareTest: add componentContext to returned args
- remove unused componentContext args
- test: fix expected values for Derived and Input
- perf: pre-compile svelte components before test run
- perf: cache resolveSvelteOnlyExports results on disk (keyed by content hash) to skip per-file AST parse during test collection on warm runs
- perf: increase component pre-compile concurrency from 2 to 6
- feat: support context option for component tests
- fix: resolve bare svelte imports to client runtime in ts loader
- tsconfig: remove allowSyntheticDefaultImports and allowImportingTsExtensions, add types/node
- remove TestComponent.svelte from testFixtures/barrelFixtures, is in testFixtures/components
- format
0.3.41
- svelte component coverage fully fixed, 0.3.40 was using the wrong paths
- move test/.fixtures to src/lib/svelte/testFixtures to make them exposed to c8 coverage
0.3.40
- fix svelte component coverage by pointing sourcemaps back to .svelte components
0.3.39
- change c8 to use --all flag
- change c8 to not include dist by default
0.3.38
- fix imports of svelte components, they only have a default export. resolveSvelteExports now handles this correctly.
- update dependencies
0.3.37
- svelte mount now correctly resolves # imports map from package.json
0.3.36
- fix: add null guards for TypeScript strict mode in getSvelteExports tests
0.3.35
- works with sveltekit ^3.0.0
- feat: add package.json imports support and module resolution (feat)
- feat: add svelte shims: $app/env added, also resolves as $app/environment
- move test fixtures to test/.fixtures
- chore: update dependencies
0.3.34
has subfunctions now allow either predicate functions OR literal values to be checked
0.3.33
- update dependencies
0.3.32
- make svelte optional again
0.3.31
- feat: add deadlock detection system (ddl)
- feat: integrate ddl into cache, compile, and import pipeline
- feat: integrate ddl into resolve and package export pipeline
- feat: add loader init, warmup, and $app resolution
- feat: add addEventListener/removeEventListener to globals
- fix(svelte): remove console.error from pathUtils
- fix: add null guard and directory fallback in pathUtils
- fix: update registerLoader usage
- fix: remove REGISTERED message from tsLoader
- fix: fix tsc and eslint errors
0.3.30
- fix(svelte): resolve $app imports to shims instead of @sveltejs/kit runtime (fixes ERR_MODULE_NOT_FOUND in tests)
- fix(svelte): skip non-default exports from .svelte files in barrel compilation (TypeScript types erased at runtime)
- fix(vite): inject $app alias into vite aliases for resolveAlias fallback
- style(svelte): use @magic/fs instead of node:fs for consistency
- fix(c8): correctly order argv for c8 runs.
0.3.29
- feat(svelte): extract pathUtils with shared path resolution helpers (resolveFilePath, EXTENSION_CANDIDATES, FALLBACK_CANDIDATES, isSkipPattern)
- feat(svelte): extract fileWriter module for compiled file output with source map support
- feat(svelte): add resolveNodeModulesRelativeImportsPreprocessor for fixing '..' imports in node_modules
- feat(cache): add dedup function for concurrent promise deduplication
- refactor(svelte): extract loadViteConfig to shared module, consolidate getViteDefine and loadViteDefine
- refactor(svelte): remove resolveViteAlias, consolidate into resolveAlias
- refactor(svelte): use visitor pattern in resolveSvelteOnlyExports (traverseExports + ExportVisitor)
- refactor(svelte): use pathUtils in resolvePackageExport, fix .mjs resolution
- refactor(svelte): update tsLoader to use resolveAlias with includeShims and extractImportsSync
- refactor(svelte): use shared helpers across compile modules (getTempFilePath, fileWriter, processImports)
- fix(svelte): add includeShims option to resolveAlias for bare imports
- fix(vite): vite defines now correctly set in globalThis, by calling JSON.parse during assign.
0.3.28
- fix: $lib/types.js -> the .js gets removed before appending the correct extension
- regression fix: version spec check now correctly errors with expected type again.
- update dependencies
0.3.27
- fix: exclude .d.ts files from test discovery (passed .ts filter, caused import failures)
- fix: always exclude .d.ts from c8 coverage (user --exclude can no longer remove it)
- refactor: restructure c8 exclude logic in t.ts
- chore: move changelog from README.md to CHANGELOG.md (650 lines extracted)
0.3.26
- add customElements to happy-dom globals
0.3.25
- fix: use @magic/types for more type comparisons
- feat: make expect accept an array of typechecks
- test: make more files testable by extracting pure functions
- update dependencies
0.3.24
- feat: show total time including test discovery overhead
- feat: add progress tracking for test discovery
- feat: add DISCOVERY_TIMEOUT env var to control test discovery timeout (default: 30s)
- perf: cache getViteDefine results
0.3.23
- 0.3.22 caused tests to fail because viteconfig was not loaded correctly and lead to recursive imports
0.3.22
- feat: make restoreProperties method public on Isolation class
- fix: move BigInt check before other type checks in makeSafeClone
- refactor: use pathToFileURL for ESM config imports
- refactor: use wrapTest helper consistently in suite
- refactor: simplify suiteHasBeforeAllOrAfterAll condition
- refactor: extract hasFixedPort helper in isolationChecks
- refactor: extract restoreProperties helper
- refactor: deduplicate evaluateWorkerResult by re-exporting evaluateTestResult
- refactor: use CACHE_DIR constant for test temp files
- refactor: use dynamic imports instead of manual config parsing
- refactor(http): extract makeRequest helper to deduplicate get/post
- refactor(mount): handle Svelte 5 snippets properly
- test: fix test type errors for HTMLElement click function
- test: update fixtures for improved test harness
- update dependencies
0.3.21
- various build performance improvements, especially for svelte components
- add timing traces with MAGIC_TEST_TRACE env var and --trace CLI flag
- add promise-based caching via CacheManager
- consolidate worker pool into single source
- centralize caching in CacheManager at tsLoader level
- increase default test timeout to 30s
- fixed tsLoader .ts file handling
- add more tests for @magic/test itself
- implement persistent disk cache in node_modules/.magic-test-cache
- parallelize import resolution, barrel exports, and fs.exists checks
- cache fs.exists results, processImports results, and resolveViteAlias results
- skip writing unchanged files during compilation
- consolidate caches into single pendingPromises map
- add more tests for @magic/test itself
- update dependencies
0.3.20
- prevent double-compilation of svelte components
- update dependencies
0.3.19
- svelte edge cases
- custom test defines for globals
0.3.18
- better resolution for imported dependencies in tests
- especially <script> tags in svelte components that export functions/variables
- update dependencies
0.3.17
- better test discovery, had edge cases where tests were not found
0.3.16
- better kill handling for workers and child_process
- README fixes
- remove @systemkollektiv devDependencies, those packages are private for now
- update dependencies
0.3.15
- fix import of .svelte.js/.ts files if js/ts extension is omitted
0.3.14
- fireEvent function now correctly handles various addEventListener event types
0.3.13
- update dependencies
0.3.12
- make svelte optional for consumers
- update dependencies
0.3.11
- performance improvements, better checks if tests need to be isolated
- fix timing issues in isolation code
- replace regex code checks with ast checks
- add `has` functionality for object checks
- update dependencies
0.3.10
- fix more edge cases in svelte compilation steps
- add .css import support
- update dependencies
0.3.9
- fix imports of test/index.(mjs|ts|js) files
0.3.8
- add --workers flag to control max parallel workers (default: auto-detect CPU count)
- canvas polyfill works properly in happy-dom environment
- svelte: resolve svelte-only package exports
- svelte: fix import chain handling for components
- version: check if Lib is missing exports
- worker isolation: beforeAll and afterAll run in workers directly
- before fields in tests get awaited if they return a raw promise
0.3.7
- advanced worker isolation, executing minimum number of needed workers for tests. lots of internal changes to achieve this.
0.3.6
broken - tried implementing better isolation
0.3.5
- better tsLoader resolve mechanism
0.3.4
- also run registerLoader in workers
0.3.3
- replace all import .ts with .js
- some test output fixes
0.3.2
broken: some .ts references for worker.ts and unit.ts
- publish dist dir with .js files for consumers.
0.3.1
broken, dist dir missing
0.3.0
broken. node can not strip types in node_modules...
- added html support (using happy-dom, experimental!)
- added svelte support (experimental!)
- various improvements to test logic and structure of internal lib
- more tests.
0.2.30
- allow tests to be written using typescript, .ts files can be test files now.
- add some internal tests
- update dependencies
0.2.29
- tryCatch: pass on empty args
- update dependencies
0.2.28
- use node:module register function for loader, allowing use of the --import flag instead of soon deprecated --loader.
0.2.27
- allow resolving .js files as .ts files, this mimics typescript .js file resolver
- update @types/node
0.2.26
- update dependencies
0.2.25
- update dependencies
0.2.24
- fix @magic/core tests on windows.
0.2.23
- readd npm run prepublishOnly task
- update dependencies
0.2.22
- add comprehensive typescript types
- rework some functionality to be typesafe and typeguarded
- update dependencies
0.2.21
- update dependencies
0.2.20
- update dependencies
0.2.19
- update dependencies
- add unused http.post. probably should replace http with fetch...
0.2.18
- add missing fs.statfs, fs.statfsSync and fs.promises.constants to test/spec
- update dependencies
0.2.17
- remove calls and coveralls-next, c8 takes care of coverage.
- update dependencies
0.2.16
- update dependencies
0.2.15
- update dependencies
- percentage outputs print nicer numbers
- added http export that allows http requests in tests. only supports get requests for now.
0.2.14
- update dependencies
0.2.13
- update dependencies
0.2.12
- update dependencies
0.2.11
- update dependencies
0.2.10
- @magic/test can now test @magic/core again
0.2.9
- update dependencies
0.2.8
- update dependencies
0.2.7
- update dependencies
- replace coveralls with coveralls-next
0.2.6
- update dependencies
0.2.5
- update dependencies
- @magic/core is a dev dependency now.
0.2.4
- lib/version: spec can have objects defined with ['obj', false], which will test the parent to be an object, but does not test the key/value pairs in the object.
- maybeInjectMagic: made magic injection more robust and much faster if magic is not being used.
- t -p now does not show the coverage information
0.2.3
- update dependencies
0.2.2
- spec values can be functions, allowing arbitrary equality testing to be executed by @magic/test.version
0.2.1
- internal restructuring
- tests now output their run duration
- add @magic/error dependency and export it from index
- index.js files have the same functionality as index.js files
- update dependencies
0.2.0
- update dependencies
- version now tests spec and lib in a single run.
0.1.77
- update dependencies
0.1.76
- update dependencies
0.1.75
- update dependencies
0.1.74
- update dependencies
0.1.73
- update dependencies
0.1.72
- update @magic/types and intermediate deps to avoid circular dependency
0.1.71
- update dependencies
0.1.70
- update dependencies
0.1.69
- import of magic config should work on windows
0.1.68
- update @magic/core to fix tests if magic.js does not exist
0.1.67
- silence errors if magic.js does not exist
0.1.66
- better handling if magic is not in use
0.1.65
- update dependencies
- testing of @magic-modules is now built in.
- if @magic/core is installed, the tests will "just work" and return html for @magic-modules
0.1.64
- update dependencies (@magic/fs)
0.1.63
- update dependencies (c8)
0.1.62
- add html flag to tests, now @magic-modules can be tested \o/
- update dependencies
0.1.61
- update dependencies
0.1.60
- bump required node version to 14.15.4
- update dependencies
0.1.59
- update dependencies
0.1.58
- update dependencies
0.1.57
- update dependencies
0.1.56
- update dependencies
0.1.55
- update dependencies
0.1.54
- update dependencies
0.1.53
- update dependencies
0.1.52
- update dependencies
- remove hyperapp from exports.
0.1.51
- update dependencies
0.1.50
- remove @magic/css export
- update c8
0.1.49
- update @magic/css
0.1.48
- bump required node version to 14.2.0
- update dependencies
0.1.47
- update c8, yargs-parser
0.1.46
- update @magic/css
0.1.45
- security fix: update dependencies, yargs-parser.
0.1.44
- update dependencies
0.1.43
- update dependencies
0.1.42
- update dependencies
0.1.41
- update dependencies
0.1.40
- update dependencies
0.1.39
- update coveralls, fix minimist issue above.
0.1.38
- update dependencies, minimist sec issue.
0.1.37
- fix: arguments for both node and c8 tests work. broken in 0.1.36
0.1.36
- c8: --exclude, --include and --all get applied correctly.
0.1.35
- fix: c8 errored if coverage dir did not exist
- update dependencies
0.1.34
- fix: c8 needs "report" command now
0.1.33
- update exported dependencies
0.1.32
- tests now work on windows \o/
- uncaught errors will cause tests to fail with process.exit(1)
0.1.31
- update dependencies
0.1.30
- export @magic/fs
0.1.29
- help text can show up when --help is used
0.1.28
- package: engineStrict: true
- update cli: missing @magic/cases dependency
0.1.27
- remove prettier from deps
0.1.26
- remove commonjs support. node 13+ required. awesome.
0.1.25
- currying now throws errors instead of returning them.
- update @magic/css
- update @magic/types which now uses @magic/deep for is.deep.eq and is.deep.diff
0.1.24
- update @magic/css
- update c8
0.1.23
- update @magic dependencies to use npm packages instead of github
0.1.22
- update dependencies
0.1.21
- update @magic/cli to allow default args
0.1.20
- update broken dependencies
0.1.19
- update dependencies
0.1.18
- update dependencies
- require node 12.13.0
0.1.17
- add node 13 json support for coverage reports.
0.1.16
- update @magic/cli for node 13 support.
0.1.15
- update dependencies
0.1.14
- windows support now supports index.js files that provide test structure
0.1.13
- windows support is back
0.1.12
- update dependencies
0.1.11
- update prettier, coveralls
- add and export @magic/css to test css validity
0.1.10
- node 12.4.0 does not use --experimental-json-modules flag. removed it in 12.4+.
0.1.9
- test/beforeAll.js gets loaded separately if it exists and executed before all tests
- test/afterAll.js gets loaded separately if it exists and executed after all tests
- if the function exported from test/beforeAll.js returns another function, this returned function will also be executed after all tests
- export hyperapp beta 18
0.1.8
- update @magic/cli
0.1.7
- readded calls npm run script
- updated c8
0.1.6
- update this readme and html docs.
- tests should always process.exit(1) if they errored.
0.1.5
- use ecmascript version of @magic/deep
0.1.4
- npm run scripts of @magic/test itself can be run on windows.
0.1.3
- cli now works everywhere
0.1.2
- cli now works on windows again (actually, this version is broken on all platforms.)
0.1.1
- rework of bin scripts and update dependencies to esmodules
0.1.0
- use esmodules instead of commonjs.