Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ jobs:
- name: Typecheck
run: npx tsc
- name: Run NPM Test
run: yarn test -T 1m
run: yarn test -T 5m
2 changes: 1 addition & 1 deletion tests/build-and-check-health.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import getPort from "get-port"
import axios from "axios"
import { getSampleProject } from "./fixtures/get-sample-project"

test("build and check health", async (t) => {
test.serial("build and check health", async (t) => {
const {getNsmIndex} = await getSampleProject()
const port = await getPort()
const server = await getNsmIndex({ port })
Expand Down
2 changes: 1 addition & 1 deletion tests/build-nextless-and-check-health.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import getPort from "get-port"
import axios from "axios"
import { getSampleProject } from "./fixtures/get-sample-project-without-next"

test("build and check health", async (t) => {
test.serial("build and check health", async (t) => {
const {getNsmIndex} = await getSampleProject()
const port = await getPort()
const server = await getNsmIndex({ port })
Expand Down
16 changes: 0 additions & 16 deletions tests/build-without-next-and-check-health.test.ts

This file was deleted.

2 changes: 1 addition & 1 deletion tests/dynamic-catchall.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import getPort from "get-port"
import axios from "axios"
import { getSampleProject } from "./fixtures/get-sample-project"

test("dynamic catchall path", async (t) => {
test.serial("dynamic catchall path", async (t) => {
const {getNsmIndex} = await getSampleProject()
const port = await getPort()

Expand Down
2 changes: 1 addition & 1 deletion tests/no-rewrite-with-query.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from "ava"
import axios from "axios"
import { getSampleProject } from "./fixtures/get-sample-project"

test("no rewrite with query", async (t) => {
test.serial("no rewrite with query", async (t) => {
const {getServerFixture} = await getSampleProject()

const {serverURL} = await getServerFixture(t)
Expand Down
2 changes: 1 addition & 1 deletion tests/resolve-rewrites.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from "ava"
import { parseUrl } from "nsm/nextjs-middleware/parse-url"
import resolveRewrites from "nsm/nextjs-middleware/resolve-rewrites"

test("resolve rewrites /health -> /api/health", async (t) => {
test.serial("resolve rewrites /health -> /api/health", async (t) => {
const result = resolveRewrites(
"/health",
["/api/health"],
Expand Down
2 changes: 1 addition & 1 deletion tests/streaming.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import test from "ava"
import { getSampleProject } from "./fixtures/get-sample-project"

test("streaming", async (t) => {
test.serial("streaming", async (t) => {
const {getServerFixture} = await getSampleProject()

const {axios} = await getServerFixture(t)
Expand Down
2 changes: 1 addition & 1 deletion tests/wait-for-server.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import test from "ava"
import getPort from "get-port"
import { getSampleProject } from "./fixtures/get-sample-project"

test("wait for server to start or throw", async (t) => {
test.serial("wait for server to start or throw", async (t) => {
const { getNsmIndex } = await getSampleProject()

const port = await getPort()
Expand Down