test(web-view): fix failing tests due to files not being copied

This commit is contained in:
Igor Randjelovic
2021-02-04 22:15:58 +01:00
parent 4b96d4baa0
commit abc78800f2
3 changed files with 15 additions and 0 deletions

1
apps/automated/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
!webpack.custom.config.js

View File

@ -3,6 +3,7 @@ import { NativeScriptConfig } from '@nativescript/core';
export default { export default {
id: 'org.nativescript.UnitTestApp', id: 'org.nativescript.UnitTestApp',
appResourcesPath: '../../tools/assets/App_Resources', appResourcesPath: '../../tools/assets/App_Resources',
webpackConfigPath: 'webpack.custom.config.js',
android: { android: {
v8Flags: '--expose_gc', v8Flags: '--expose_gc',
markingMode: 'none', markingMode: 'none',

View File

@ -0,0 +1,13 @@
const webpackConfig = require('./webpack.config');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = (env) => {
env = env || {};
const baseConfig = webpackConfig(env);
baseConfig.plugins.push(new CopyWebpackPlugin([
{ from: { glob: 'ui/web-view/*.html', dot: false } }
]))
return baseConfig;
};