mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
feat(webpack): default tsconfig.json if not found
This commit is contained in:
@ -1,5 +1,11 @@
|
||||
import Config from 'webpack-chain';
|
||||
|
||||
import {
|
||||
mockExistsSync,
|
||||
restoreExistsSync,
|
||||
setHasTSConfig,
|
||||
} from '../../scripts/jest.utils';
|
||||
|
||||
import svelte from '../../src/configuration/svelte';
|
||||
import { init } from '../../src';
|
||||
|
||||
@ -8,6 +14,15 @@ jest.mock('__jest__/svelte.config.js', () => {}, { virtual: true });
|
||||
describe('svelte configuration', () => {
|
||||
const platforms = ['ios', 'android'];
|
||||
|
||||
beforeAll(() => {
|
||||
mockExistsSync();
|
||||
setHasTSConfig(true);
|
||||
});
|
||||
|
||||
afterAll(() => {
|
||||
restoreExistsSync();
|
||||
});
|
||||
|
||||
for (let platform of platforms) {
|
||||
it(`for ${platform}`, () => {
|
||||
init({
|
||||
|
Reference in New Issue
Block a user