Files
cocos-engine/tests/setup-after-env.ts

9 lines
200 B
TypeScript

// @ts-ignore
import * as matchers from 'jest-extended';
expect.extend(matchers);
const testPath = expect.getState().testPath;
if (testPath.match(/animation/)) {
require('../cocos/animation');
}