We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 27d8518 commit 74ce319Copy full SHA for 74ce319
test/e2e/api.test.js
@@ -80,6 +80,29 @@ describe("API", () => {
80
});
81
82
83
+ it(`should catch errors within startCallback`, async () => {
84
+ const compiler = webpack(config);
85
+ const server = new Server(
86
+ { port, static: "https://absolute-url.com/somewhere" },
87
+ compiler
88
+ );
89
+
90
+ await new Promise((resolve) => {
91
+ server.startCallback((err) => {
92
+ expect(err.message).toEqual(
93
+ "Using a URL as static.directory is not supported"
94
95
+ resolve();
96
+ });
97
98
99
100
+ server.stopCallback(() => {
101
102
103
104
105
106
it(`should work when using configured manually`, async () => {
107
const compiler = webpack({
108
...config,
0 commit comments