File tree Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Expand file tree Collapse file tree 2 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -60,23 +60,22 @@ describe('webpack loaders', () => {
60
60
} ) ;
61
61
62
62
describe ( 'client loaders' , ( ) => {
63
- it ( "doesn't add `RewriteFrames` loader to client config" , async ( ) => {
63
+ it ( 'adds `RewriteFrames` loader to client config' , async ( ) => {
64
64
const finalWebpackConfig = await materializeFinalWebpackConfig ( {
65
65
exportedNextConfig,
66
66
incomingWebpackConfig : clientWebpackConfig ,
67
67
incomingWebpackBuildContext : clientBuildContext ,
68
68
} ) ;
69
69
70
- expect ( finalWebpackConfig . module . rules ) . not . toContainEqual (
71
- expect . objectContaining ( {
72
- use : [
73
- {
74
- loader : expect . stringEndingWith ( 'prefixLoader.js' ) ,
75
- options : expect . objectContaining ( { templatePrefix : expect . stringContaining ( 'RewriteFrames' ) } ) ,
76
- } ,
77
- ] ,
78
- } ) ,
79
- ) ;
70
+ expect ( finalWebpackConfig . module . rules ) . toContainEqual ( {
71
+ test : / s e n t r y \. c l i e n t \. c o n f i g \. ( j s x ? | t s x ? ) / ,
72
+ use : [
73
+ {
74
+ loader : expect . stringEndingWith ( 'prefixLoader.js' ) ,
75
+ options : expect . objectContaining ( { templatePrefix : 'clientRewriteFrames' } ) ,
76
+ } ,
77
+ ] ,
78
+ } ) ;
80
79
} ) ;
81
80
} ) ;
82
81
} ) ;
Original file line number Diff line number Diff line change @@ -63,7 +63,11 @@ describe('Client init()', () => {
63
63
} ,
64
64
} ,
65
65
environment : 'test' ,
66
- integrations : [ ] ,
66
+ integrations : expect . arrayContaining ( [
67
+ expect . objectContaining ( {
68
+ name : 'RewriteFrames' ,
69
+ } ) ,
70
+ ] ) ,
67
71
} ) ,
68
72
) ;
69
73
} ) ;
You can’t perform that action at this time.
0 commit comments