1 | import fs from 'fs';
|
2 | import path from 'path';
|
3 | import packageJSON from '../package.json';
|
4 | import matchTest from '../../../test/match-test';
|
5 |
|
6 | const tests = fs.readdirSync(__dirname);
|
7 |
|
8 | tests.forEach(test => {
|
9 | if (test[0] === '.' || path.extname(test).length > 0) {
|
10 | return;
|
11 | }
|
12 |
|
13 | matchTest(
|
14 | `${packageJSON.name}: ${test}`,
|
15 | path.resolve(__dirname, test, 'input.yaml'),
|
16 | path.resolve(__dirname, test, 'expected.yaml'),
|
17 | path.resolve(__dirname, test, 'transform.js')
|
18 | )
|
19 | });
|