mirror of
				https://github.com/NativeScript/NativeScript.git
				synced 2025-11-04 21:06:45 +08:00 
			
		
		
		
	
		
			
				
	
	
		
			20 lines
		
	
	
		
			457 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			457 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
import Config from 'webpack-chain';
 | 
						|
 | 
						|
import svelte from '../../src/configuration/svelte';
 | 
						|
import { init } from '../../src';
 | 
						|
 | 
						|
jest.mock('__jest__/svelte.config.js', () => {}, { virtual: true });
 | 
						|
 | 
						|
describe('svelte configuration', () => {
 | 
						|
	const platforms = ['ios', 'android'];
 | 
						|
 | 
						|
	for (let platform of platforms) {
 | 
						|
		it(`for ${platform}`, () => {
 | 
						|
			init({
 | 
						|
				[platform]: true,
 | 
						|
			});
 | 
						|
			expect(svelte(new Config()).toString()).toMatchSnapshot();
 | 
						|
		});
 | 
						|
	}
 | 
						|
});
 |