mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
test(web-view): fix failing tests due to files not being copied
This commit is contained in:
1
apps/automated/.gitignore
vendored
Normal file
1
apps/automated/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
!webpack.custom.config.js
|
@ -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',
|
||||||
|
13
apps/automated/webpack.custom.config.js
Normal file
13
apps/automated/webpack.custom.config.js
Normal 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;
|
||||||
|
};
|
Reference in New Issue
Block a user