# Testing signals — swc-project/swc

> Canonical page: https://codevetter.com/unpack/swc/testing-signals

# Testing signals — swc-project/swc

Scanned commit 3c46139b86b27a7b3fefcf7b19ca07a63de9db0a (2026-10-02). Generated by codevetter codevetter 1.15.0 on 2026-10-02.

Source inspection; upstream code and tests were not executed.

Tests and CI were inspected, not executed; no passing result or coverage percentage is asserted. The inspected suites combine Rstest API assertions, Rust tests and fixture macros, external execution comparisons, and Node test-runner release contracts. Coverage includes source-context behavior, compiler ordering, source maps, native cache repair, and parser conformance. Feature gates, exclusions, optional suites, and selective CI matrices limit what test existence establishes.
- This investigation inspected test definitions and CI commands without executing them; Rstest configuration and cargo-test workflow declarations provide intended coverage, not evidence that this pinned commit passes. — [packages/core/rstest.config.ts#L3-25](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/packages/core/rstest.config.ts#L3-L25) [.github/workflows/CI.yml#L423-468](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/.github/workflows/CI.yml#L423-L468)
- Core Rstest has unit and plugin E2E projects with native-test-setup; DISABLE_PLUGIN_E2E_TESTS removes the E2E project, and setup explicitly throws when binding.js cannot initialize. — [packages/core/rstest.config.ts#L3-25](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/packages/core/rstest.config.ts#L3-L25) [packages/core/native-test-setup.ts#L1-11](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/packages/core/native-test-setup.ts#L1-L11)
- Node parse tests cover async/sync AST creation, parse-to-print round-trips, buffer inputs, and missing-file rejection; transform tests cover AST input, legacy plugins, disabled source maps, and React Compiler options. — [packages/core/__tests__/parse/api_test.js#L3-52](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/packages/core/__tests__/parse/api_test.js#L3-L52) [packages/core/__tests__/transform/api_test.js#L16-23](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/packages/core/__tests__/transform/api_test.js#L16-L23) [packages/core/__tests__/transform/api_test.js#L43-86](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/packages/core/__tests__/transform/api_test.js#L43-L86) [packages/core/__tests__/transform/api_test.js#L99-135](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/packages/core/__tests__/transform/api_test.js#L99-L135)
- Rust source-context unit tests assert span rebasing, dropping out-of-range spans, and preserving reserved positions; a Rust API test verifies custom transforms run after TypeScript stripping. — [bindings/binding_core_node/src/ast_context.rs#L188-231](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/bindings/binding_core_node/src/ast_context.rs#L188-L231) [crates/swc/tests/rust_api.rs#L20-58](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc/tests/rust_api.rs#L20-L58)
- Compiler execution fixtures discover exec.js/exec.mjs/exec.ts, build an option matrix, compile each input, execute generated code, and compare stdout; source-map tests write generated artifacts and launch Node validation. — [crates/swc/tests/exec.rs#L203-224](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc/tests/exec.rs#L203-L224) [crates/swc/tests/exec.rs#L368-403](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc/tests/exec.rs#L368-L403) [crates/swc/tests/source_map.rs#L25-70](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc/tests/source_map.rs#L25-L70)
- Parser test262 tests compare normalized pass and pass-explicit ASTs and JSON round-trips; the harness uses unstable libtest and explicitly ignores cases for stack size, Annex B, strict-mode, and Unicode differences. — [crates/swc_ecma_parser/tests/test262.rs#L1-18](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc_ecma_parser/tests/test262.rs#L1-L18) [crates/swc_ecma_parser/tests/test262.rs#L24-84](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc_ecma_parser/tests/test262.rs#L24-L84) [crates/swc_ecma_parser/tests/test262.rs#L262-299](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc_ecma_parser/tests/test262.rs#L262-L299)
- Native cache tests cover mode parsing, verified cache hits, corruption recovery, pruning, and custom-root fallback; node:test release contracts assert the 48-artifact inventory and reject missing, duplicate, stale, or substituted reports. — [crates/swc_native_addon/tests/cache.rs#L14-58](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc_native_addon/tests/cache.rs#L14-L58) [crates/swc_native_addon/tests/cache.rs#L61-118](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/crates/swc_native_addon/tests/cache.rs#L61-L118) [scripts/native/contracts.test.mjs#L42-85](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/scripts/native/contracts.test.mjs#L42-L85)
- CI selects affected crates and special feature combinations, runs core binding tests on Windows/macOS with Linux commented out in that matrix, and provides separate CodSpeed benchmarks and actionlint/pinact/zizmor checks; these definitions do not establish exhaustive host coverage. — [.github/workflows/CI.yml#L302-335](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/.github/workflows/CI.yml#L302-L335) [.github/workflows/CI.yml#L455-468](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/.github/workflows/CI.yml#L455-L468) [.github/workflows/CI.yml#L510-565](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/.github/workflows/CI.yml#L510-L565) [.github/workflows/actions-security.yml#L72-144](https://github.com/swc-project/swc/blob/3c46139b86b27a7b3fefcf7b19ca07a63de9db0a/.github/workflows/actions-security.yml#L72-L144)

Every claim links to its cited files at the pinned commit. Citations identify source evidence; they do not establish runtime correctness. Independent CodeVetter scan — not reviewed by upstream maintainers.

## Public product links

- [CodeVetter](https://codevetter.com/)
- [Download](https://codevetter.com/download)
- [Documentation](https://codevetter.com/docs/)
- [Source](https://github.com/Codevetter/codevetter)
