Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions test/WebpackNotifierPlugin.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,9 @@ describe('WebpackNotifierPlugin', () => {
[['successful'], undefined, {plugins: [new ChildCompilationPlugin(), new ChildCompilationPlugin('Warning')]}],
])('%j %j %j', testChangesFlow, 10e3);
});
describe('child compilation errors', () => {
test.each([
[['successful'], {appId: 'com.squirrel.your.app'}],// TODO mark as deprecate at v2.x
])('%j %j %j', testChangesFlow, 10e3);
});
});
9 changes: 9 additions & 0 deletions test/__snapshots__/WebpackNotifierPlugin.test.ts.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
// Jest Snapshot v1, https://goo.gl/fbAQLP

exports[`WebpackNotifierPlugin child compilation errors ["successful"] {"appId":"com.squirrel.your.app"} %j: after "successful" build 1`] = `
Object {
"appId": "com.squirrel.your.app",
"contentImage": "__dirname/logo.png",
"message": "Build successful",
"title": "Webpack",
}
`;

exports[`WebpackNotifierPlugin child compilation errors ["successful"] undefined {"plugins":[{"level":"Error","levelCollectionKey":"errors"}]}: after "successful" build 1`] = `
Object {
"contentImage": "__dirname/logo.png",
Expand Down