nx/packages/react/migrations.spec.ts

13 lines
330 B
TypeScript

import path = require('path');
import json = require('./migrations.json');
describe('React migrations', () => {
it('should have valid paths', () => {
Object.values(json.generators).forEach((m) => {
expect(() =>
require.resolve(path.join(__dirname, `${m.factory}.ts`))
).not.toThrow();
});
});
});