Skip to content

Commit

Permalink
test: use random devserver ports
Browse files Browse the repository at this point in the history
  • Loading branch information
jbedard committed Jul 12, 2022
1 parent 585a1c9 commit f4cf6aa
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -34,7 +34,7 @@ describe('Dev Server Builder', () => {
expect(output.success).toBe(true);

// When webpack-dev-server doesn't have `contentBase: false`, this will serve the repo README.
const response = await fetch('http://localhost:4200/README.md', {
const response = await fetch(`http://localhost:${output.port}/README.md`, {
headers: {
'Accept': 'text/html',
},
Expand Down
Expand Up @@ -23,7 +23,7 @@ exports.config = {
},
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
baseUrl: 'http://localhost:0/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
Expand Down
Expand Up @@ -17,7 +17,7 @@ exports.config = {
},
directConnect: true,
SELENIUM_PROMISE_MANAGER: false,
baseUrl: 'http://localhost:4200/',
baseUrl: 'http://localhost:0/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
Expand Down
Expand Up @@ -14,7 +14,7 @@ exports.config = {
browserName: 'chrome',
},
directConnect: true,
baseUrl: 'http://localhost:4200/',
baseUrl: 'http://localhost:0/',
framework: 'jasmine',
jasmineNodeOpts: {
showColors: true,
Expand Down

0 comments on commit f4cf6aa

Please sign in to comment.