Skip to content

Commit 84cf922

Browse files
test: fix
1 parent cc86a7a commit 84cf922

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

lib/utils/normalizeOptions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ function normalizeOptions(compiler, options) {
1515
: {};
1616

1717
const defaultOptionsForStatic = {
18-
directory: path.join(process.cwd(), 'dist'),
18+
directory: path.join(process.cwd(), 'static'),
1919
staticOptions: {},
2020
publicPath: ['/'],
2121
serveIndex: { icons: true },

test/server/utils/normalizeOptions.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ describe('normalizeOptions', () => {
449449

450450
if (data.options.static) {
451451
data.options.static.forEach((staticOpts) => {
452-
if (staticOpts.directory === path.join(process.cwd(), 'dist')) {
452+
if (staticOpts.directory === path.join(process.cwd(), 'static')) {
453453
// give an indication in the snapshot that this is the
454454
// current working directory
455455
staticOpts.directory = 'CWD';

0 commit comments

Comments
 (0)