Skip to content

Commit abc7880

Browse files
committed
test(web-view): fix failing tests due to files not being copied
1 parent 4b96d4b commit abc7880

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

apps/automated/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
!webpack.custom.config.js

apps/automated/nativescript.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { NativeScriptConfig } from '@nativescript/core';
33
export default {
44
id: 'org.nativescript.UnitTestApp',
55
appResourcesPath: '../../tools/assets/App_Resources',
6+
webpackConfigPath: 'webpack.custom.config.js',
67
android: {
78
v8Flags: '--expose_gc',
89
markingMode: 'none',
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const webpackConfig = require('./webpack.config');
2+
const CopyWebpackPlugin = require('copy-webpack-plugin');
3+
4+
module.exports = (env) => {
5+
env = env || {};
6+
const baseConfig = webpackConfig(env);
7+
8+
baseConfig.plugins.push(new CopyWebpackPlugin([
9+
{ from: { glob: 'ui/web-view/*.html', dot: false } }
10+
]))
11+
12+
return baseConfig;
13+
};

0 commit comments

Comments
 (0)