mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-20 23:42:50 +08:00
test: update snapshots
This commit is contained in:
@ -226,6 +226,7 @@ exports[`angular configuration for android 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -519,6 +520,7 @@ exports[`angular configuration for ios 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
|
@ -224,6 +224,7 @@ exports[`base configuration for android 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -505,6 +506,7 @@ exports[`base configuration for ios 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
|
@ -250,6 +250,7 @@ exports[`javascript configuration for android 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -568,6 +569,7 @@ exports[`javascript configuration for ios 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
|
@ -239,6 +239,7 @@ exports[`react configuration > android > adds ReactRefreshWebpackPlugin when HMR
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -537,6 +538,7 @@ exports[`react configuration > android > base config 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -835,6 +837,7 @@ exports[`react configuration > ios > adds ReactRefreshWebpackPlugin when HMR ena
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
@ -1134,6 +1137,7 @@ exports[`react configuration > ios > base config 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
|
@ -249,6 +249,7 @@ exports[`svelte configuration for android 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -555,6 +556,7 @@ exports[`svelte configuration for ios 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
|
@ -250,6 +250,7 @@ exports[`typescript configuration for android 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -568,6 +569,7 @@ exports[`typescript configuration for ios 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
|
@ -256,6 +256,7 @@ exports[`vue configuration for android 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: true,
|
__ANDROID__: true,
|
||||||
@ -569,6 +570,7 @@ exports[`vue configuration for ios 1`] = `
|
|||||||
{
|
{
|
||||||
__DEV__: true,
|
__DEV__: true,
|
||||||
__NS_WEBPACK__: true,
|
__NS_WEBPACK__: true,
|
||||||
|
__NS_ENV_VERBOSE__: false,
|
||||||
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
__NS_DEV_HOST_IPS__: '[\\"127.0.0.1\\",\\"192.168.0.10\\"]',
|
||||||
__CSS_PARSER__: '\\"css-tree\\"',
|
__CSS_PARSER__: '\\"css-tree\\"',
|
||||||
__ANDROID__: false,
|
__ANDROID__: false,
|
||||||
|
@ -24,6 +24,24 @@ jest.mock(
|
|||||||
|
|
||||||
describe('angular configuration', () => {
|
describe('angular configuration', () => {
|
||||||
const platforms = ['ios', 'android'];
|
const platforms = ['ios', 'android'];
|
||||||
|
let fsExistsSyncSpy: jest.SpiedFunction<any>;
|
||||||
|
|
||||||
|
beforeAll(() => {
|
||||||
|
const fs = require('fs')
|
||||||
|
const original = fs.existsSync;
|
||||||
|
fsExistsSyncSpy = jest.spyOn(fs, 'existsSync')
|
||||||
|
|
||||||
|
fsExistsSyncSpy.mockImplementation((path) => {
|
||||||
|
if (path === '__jest__/tsconfig.json') {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
return original.call(fs, path)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
||||||
|
afterAll(() => {
|
||||||
|
fsExistsSyncSpy.mockRestore();
|
||||||
|
})
|
||||||
|
|
||||||
for (let platform of platforms) {
|
for (let platform of platforms) {
|
||||||
it(`for ${platform}`, () => {
|
it(`for ${platform}`, () => {
|
||||||
|
Reference in New Issue
Block a user