UNPKG

489 BJavaScriptView Raw
1import fs from 'fs';
2import path from 'path';
3import packageJSON from '../package.json';
4import matchTest from '../../../test/match-test';
5
6const tests = fs.readdirSync(__dirname);
7
8tests.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});