Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Without this config, the default URL is 'localhost' which causes
some issues when setting cookies because of a bug in tough-cookie which treats
localhost like a public domain. Because you can't set cookies on a public domain,
cookies were not being set in the tests.

Setting the testURL to a real URL fixes this issue.

@lfdebrux has raised an issue with tough-cookie here: salesforce/tough-cookie#215
  • Loading branch information
Vanita Barrett committed Aug 11, 2021
1 parent b628d6a commit c367a01
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -88,7 +88,8 @@
"preset": "jest-puppeteer",
"setupFilesAfterEnv": [
"./jest.setup.js"
]
],
"testURL": "https://design-system.service.gov.uk"
},
"browserslist": [
"last 2 versions",
Expand Down

0 comments on commit c367a01

Please sign in to comment.