mon-entreprise/publicodes/test/load-mecanism-tests.js

8 lines
227 B
JavaScript

let directoryLoaderFunction = require.context('./mécanismes', true, /.yaml$/)
let items = directoryLoaderFunction
.keys()
.map((key) => [key.replace(/\.\/|\.yaml/g, ''), directoryLoaderFunction(key)])
export default items