13 lines
329 B
TypeScript
13 lines
329 B
TypeScript
import path = require('path');
|
|
import json = require('./migrations.json');
|
|
|
|
describe('Nest migrations', () => {
|
|
it('should have valid paths', () => {
|
|
Object.values(json.schematics).forEach((m) => {
|
|
expect(() =>
|
|
require.resolve(path.join(__dirname, `${m.factory}.ts`))
|
|
).not.toThrow();
|
|
});
|
|
});
|
|
});
|