UNPKG

adaptive-tests

Version:

Tests that don't break when you move files. Smart test discovery finds your code by understanding its structure, not hardcoded paths. Works with Jest, Mocha, Vitest.

20 lines (15 loc) 407 B
'use strict'; const javascript = require('@adaptive-tests/javascript'); let typescript = null; try { typescript = require('@adaptive-tests/typescript'); } catch (error) { // Optional dependency - ignore if not installed } if (typescript && !javascript.typescript) { Object.defineProperty(javascript, 'typescript', { value: typescript, enumerable: true }); } module.exports = javascript;