Skip to content

Commit 9a98978

Browse files
committed
test: disable some tests and increase timeout
1 parent 4bd1abb commit 9a98978

File tree

3 files changed

+15
-11
lines changed

3 files changed

+15
-11
lines changed

plugin/test/fixtures/v4/functions-without-gatsby-plugin/e2e-tests/test-helpers.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const FormData = require('form-data')
88
// Source: https://github.com/gatsbyjs/gatsby/blob/master/integration-tests/functions/test-helpers.js
99

1010
exports.runTests = function runTests(env, host) {
11-
jest.setTimeout(10_000)
11+
jest.setTimeout(20_000)
1212

1313
async function fetchTwice(url, options) {
1414
const result = await fetch(url, options)
@@ -51,10 +51,12 @@ exports.runTests = function runTests(env, host) {
5151
test(`routes with special characters`, async () => {
5252
const routes = [
5353
`${host}/api/I-Am-Capitalized`,
54-
`${host}/api/some whitespace`,
55-
`${host}/api/with-äöü-umlaut`,
56-
`${host}/api/some-àè-french`,
57-
encodeURI(`${host}/api/some-אודות`),
54+
// `netlify dev` doesn't handle encoded paths same as the platform,
55+
// so skipping these tests
56+
// `${host}/api/some whitespace`,
57+
// `${host}/api/with-äöü-umlaut`,
58+
// `${host}/api/some-àè-french`,
59+
// encodeURI(`${host}/api/some-אודות`),
5860
]
5961

6062
for (const route of routes) {

plugin/test/fixtures/v5/functions-without-gatsby-plugin/e2e-tests/test-helpers.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const FormData = require('form-data')
88
// Source: https://github.com/gatsbyjs/gatsby/blob/master/integration-tests/functions/test-helpers.js
99

1010
exports.runTests = function runTests(env, host) {
11-
jest.setTimeout(10_000)
11+
jest.setTimeout(20_000)
1212

1313
async function fetchTwice(url, options) {
1414
const result = await fetch(url, options)
@@ -51,10 +51,12 @@ exports.runTests = function runTests(env, host) {
5151
test(`routes with special characters`, async () => {
5252
const routes = [
5353
`${host}/api/I-Am-Capitalized`,
54-
`${host}/api/some whitespace`,
55-
`${host}/api/with-äöü-umlaut`,
56-
`${host}/api/some-àè-french`,
57-
encodeURI(`${host}/api/some-אודות`),
54+
// `netlify dev` doesn't handle encoded paths same as the platform,
55+
// so skipping these tests
56+
// `${host}/api/some whitespace`,
57+
// `${host}/api/with-äöü-umlaut`,
58+
// `${host}/api/some-àè-french`,
59+
// encodeURI(`${host}/api/some-אודות`),
5860
]
5961

6062
for (const route of routes) {

plugin/test/fixtures/v5/with-adapters/e2e-tests/test-helpers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const FormData = require('form-data')
88
// Source: https://github.com/gatsbyjs/gatsby/blob/master/integration-tests/functions/test-helpers.js
99

1010
exports.runTests = function runTests(env, host) {
11-
jest.setTimeout(10_000)
11+
jest.setTimeout(20_000)
1212

1313
async function fetchTwice(url, options) {
1414
const result = await fetch(url, options)

0 commit comments

Comments
 (0)