aboutsummaryrefslogtreecommitdiffstats
path: root/vid-webpack-master/wallaby.js
diff options
context:
space:
mode:
Diffstat (limited to 'vid-webpack-master/wallaby.js')
-rw-r--r--vid-webpack-master/wallaby.js29
1 files changed, 29 insertions, 0 deletions
diff --git a/vid-webpack-master/wallaby.js b/vid-webpack-master/wallaby.js
new file mode 100644
index 000000000..c02f09658
--- /dev/null
+++ b/vid-webpack-master/wallaby.js
@@ -0,0 +1,29 @@
+const ngxWallabyJest = require('ngx-wallaby-jest');
+
+module.exports = function (wallaby) {
+ return {
+ files: [
+ 'src/**/*.+(ts|html|json|snap|css|less|sass|scss|jpg|jpeg|gif|png|svg)',
+ 'tsconfig.json',
+ 'tsconfig.spec.json',
+ 'jest.config.js',
+ '!src/**/*.spec.ts',
+ ],
+
+ tests: ['src/**/*.spec.ts'],
+
+ env: {
+ type: 'node',
+ runner: 'node'
+ },
+ compilers: {
+ '**/*.ts?(x)': wallaby.compilers.typeScript({ module: 'commonjs' }),
+ },
+ preprocessors: {
+ // This translate templateUrl and styleUrls to the right implementation
+ // For wallaby
+ 'projects/**/*.component.ts': ngxWallabyJest,
+ },
+ testFramework: 'jest'
+ };
+};