You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should print a warning for a package that may be resolved multiple times',()=>{
522
+
testWithImport(
523
+
'first',
524
+
'second',
525
+
cycleAliasTransformerOpts,
526
+
);
527
+
528
+
expect(mockWarn.mock.calls.length).toBe(1);
529
+
expect(mockWarn).toBeCalledWith('Resolving "first" may give different results if done multiple times. Remove cycles from the configuration or alias to absolute paths.');
530
+
});
531
+
532
+
describe('production environment',()=>{
533
+
beforeEach(()=>{
534
+
process.env.NODE_ENV='production';
535
+
});
536
+
537
+
it('should not print a warning for a package that may be resolved multiple times',()=>{
0 commit comments