/
githubmirror
/
components
Обзор
Документация
Войти
/
githubmirror
/
components
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
integration/ts-compat/test.mjs
21 строка
642 B
Paul Gschwendtner
build: update integration tests to use first-party packages
03 апр 2025, 00:28
03 апр 2025, 00:28
468f180
Код
Авторство
О чём код?
/** * Test script that runs the TypeScript compatibility tests against a specified * TypeScript package that is passed through command line. The script is executed * by a Bazel `nodejs_test` target and relies on Bazel runfile resolution. */ import {runTypeScriptCompatibilityTest} from './helpers.mjs'; import path from 'path'; const [pkgName] = process.argv.slice(2); if (!pkgName) { console.error('No TypeScript package specified. Exiting..'); process.exit(1); } const tscBin = path.resolve(`../../node_modules/${pkgName}/bin/tsc`); runTypeScriptCompatibilityTest(tscBin).catch(e => { console.error(e); process.exit(1); });