mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 11:01:21 +08:00
22 lines
479 B
TypeScript
22 lines
479 B
TypeScript
import { __vue } from '@nativescript/webpack';
|
|
|
|
// todo: maybe mock baseConfig as we test it separately?
|
|
// import Config from 'webpack-chain'
|
|
// jest.mock('../../src/configuration/base', () => () => {
|
|
// return new Config()
|
|
// })
|
|
|
|
describe('vue configuration', () => {
|
|
const platforms = ['ios', 'android'];
|
|
|
|
for (let platform of platforms) {
|
|
it(`for ${platform}`, () => {
|
|
expect(
|
|
__vue({
|
|
[platform]: true,
|
|
}).toString()
|
|
).toMatchSnapshot();
|
|
});
|
|
}
|
|
});
|