mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-15 02:54:11 +08:00
29 lines
539 B
TypeScript
29 lines
539 B
TypeScript
import Config from 'webpack-chain';
|
|
import angular from '../../src/configuration/angular';
|
|
import { init } from '../../src';
|
|
|
|
jest.mock(
|
|
'@ngtools/webpack',
|
|
() => {
|
|
class AngularCompilerPlugin {}
|
|
|
|
return {
|
|
AngularCompilerPlugin,
|
|
};
|
|
},
|
|
{ virtual: true }
|
|
);
|
|
|
|
describe.only('angular configuration', () => {
|
|
const platforms = ['ios', 'android'];
|
|
|
|
for (let platform of platforms) {
|
|
it(`for ${platform}`, () => {
|
|
init({
|
|
[platform]: true,
|
|
});
|
|
expect(angular(new Config()).toString()).toMatchSnapshot();
|
|
});
|
|
}
|
|
});
|