test: add jest and simple spec

This commit is contained in:
Igor Randjelovic
2020-11-14 14:14:36 +01:00
committed by Nathan Walker
parent 9f436695ad
commit 96da507d64
5 changed files with 62 additions and 23 deletions

View File

@@ -0,0 +1,13 @@
import * as webpack from '@nativescript/webpack';
describe('@nativescript/webpack', () => {
it('exports base configs', () => {
expect(webpack.angularConfig).toBeInstanceOf(Function);
expect(webpack.baseConfig).toBeInstanceOf(Function);
expect(webpack.javascriptConfig).toBeInstanceOf(Function);
expect(webpack.reactConfig).toBeInstanceOf(Function);
expect(webpack.svelteConfig).toBeInstanceOf(Function);
expect(webpack.typescriptConfig).toBeInstanceOf(Function);
expect(webpack.vueConfig).toBeInstanceOf(Function);
});
});