rsnext/packages/next-swc/crates/next-dev-tests/Cargo.toml
Will Binns-Smith 77283326e1 Snapshot issues in next-dev-tests (vercel/turbo#3774)
This:
* Adds issue snapshot support to next-dev-tests. This will allow us to
assert that certain issues are raised in tests that require next-dev.
* Extracts common snapshot code into a new crates,
`turbopack-test-utils`, which is shared between snapshot tests and
next-dev-tests.
* Implements an issue reporter that emits issues in a channel to the the
integration test code, where they are snapshotted.
* Fixes an issue where next-dev tests that were not Next.js apps would
emit non-fatal issues for a missing `pages/` directory.

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>

---------

Co-authored-by: Justin Ridgewell <justin@ridgewell.name>
2023-02-27 10:04:06 -08:00

60 lines
1.7 KiB
TOML

[package]
name = "next-dev-tests"
version = "0.1.0"
description = "TBD"
license = "MPL-2.0"
edition = "2021"
autobenches = false
# don't publish this crate
publish = false
[features]
tokio_console = [
"dep:console-subscriber",
"tokio/tracing",
"turbo-tasks/tokio_tracing",
]
[dependencies]
console-subscriber = { version = "0.1.8", optional = true }
[dev-dependencies]
anyhow = "1.0.47"
chromiumoxide = { version = "0.4.0", features = [
"tokio-runtime",
], default-features = false }
futures = "0.3.25"
httpmock = { version = "0.6.6", features = ["standalone"] }
lazy_static = "1.4.0"
mime = "0.3.16"
next-core = { path = "../next-core" }
next-dev = { path = "../next-dev" }
owo-colors = "3"
parking_lot = "0.12.1"
rand = "0.8.5"
regex = "1.6.0"
serde = "1.0.136"
serde_json = "1.0.85"
test-generator = "0.3.0"
tokio = { version = "1.21.2", features = ["full"] }
# For matching on errors from chromiumoxide. Keep in
# sync with chromiumoxide's tungstenite requirement.
tungstenite = "0.17.3"
turbo-malloc = { path = "../turbo-malloc", default-features = false, features = [
"custom_allocator",
] }
turbo-tasks = { path = "../turbo-tasks" }
turbo-tasks-fs = { path = "../turbo-tasks-fs" }
turbo-tasks-memory = { path = "../turbo-tasks-memory" }
turbo-tasks-testing = { path = "../turbo-tasks-testing" }
turbopack-cli-utils = { path = "../turbopack-cli-utils" }
turbopack-core = { path = "../turbopack-core" }
turbopack-dev-server = { path = "../turbopack-dev-server" }
turbopack-node = { path = "../turbopack-node" }
turbopack-test-utils = { path = "../turbopack-test-utils" }
url = "2.2.2"
webbrowser = "0.7.1"
[build-dependencies]
turbo-tasks-build = { path = "../turbo-tasks-build" }