From 6f900cc45d7dd7f97430812b86b5c1d1693c8ae3 Mon Sep 17 00:00:00 2001 From: Ittay Stern Date: Wed, 29 Aug 2018 17:01:32 +0300 Subject: merge from ecomp a88f0072 - Modern UI Issue-ID: VID-378 Change-Id: Ibcb23dd27f550cf32ce2fe0239f0f496ae014ff6 Signed-off-by: Ittay Stern --- vid-webpack-master/wallaby.js | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 vid-webpack-master/wallaby.js (limited to 'vid-webpack-master/wallaby.js') 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' + }; +}; -- cgit 1.2.3-korg