UNPKG

689 BJavaScriptView Raw
1var babel = require("ezy").babel;
2var path = require("path");
3// --------------------------------
4module.exports = function (wallaby) {
5 process.env.NODE_PATH += path.delimiter + path.join(wallaby.localProjectDir, "node_modules", "ezy", "node_modules");
6 return {
7 files: [
8 "src/**/*.js"
9 ],
10 tests: [
11 "test/**/*.js"
12 ],
13 preprocessors: {
14 "test/**/*.js": file => babel.transform(file.content, { sourceMap: true, filename: file.path }),
15 "src/**/*.js": file => babel.transform(file.content, { sourceMap: true, filename: file.path })
16 },
17 debug: true,
18 env: {
19 type: "node",
20 runner: "node"
21 },
22 testFramework: "tape"
23 };
24};