Files
pezkuwi-dev/packages/dev/src/rootCjs.spec.ts
T

15 lines
573 B
TypeScript

// Copyright 2017-2025 @pezkuwi/dev authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type * as testRoot from './root.js';
// NOTE We don't use ts-expect-error here since the build folder may or may
// not exist (so the error may or may not be there)
//
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore This should only run against the compiled ouput, where this should exist
import testRootBuild from '../build/cjs/root.js';
import { runTests } from './rootTests.js';
runTests(testRootBuild as unknown as typeof testRoot);