feat: additional base setup

This commit is contained in:
Igor Randjelovic
2020-11-14 16:16:49 +01:00
parent 2be179a8d0
commit b22e1c2361
6 changed files with 248 additions and 77 deletions

View File

@@ -1,7 +1,15 @@
import { vueConfig } from '@nativescript/webpack';
import { __vue } from '@nativescript/webpack';
describe('vue configuration', () => {
it('works', () => {
expect(vueConfig('')).toMatchSnapshot();
});
const platforms = ['ios', 'android'];
for (let platform of platforms) {
it(`[${platform}] works`, () => {
expect(
__vue({
[platform]: true,
}).toString()
).toMatchSnapshot();
});
}
});