Files
2020-11-17 14:49:36 +01:00

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();
});
}
});