Commit 5721b70f authored by Tobias Koppers's avatar Tobias Koppers

make test case more realistic

parent 5346185d
......@@ -43,6 +43,7 @@ turbopack-binding = { git = "https://github.com/vercel/turbo.git", tag = "turbop
turbo-tasks = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240614.1" }
# [TODO]: need to refactor embed_directory! macro usage in next-core
turbo-tasks-fs = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240614.1" }
turbo-tasks-malloc = { git = "https://github.com/vercel/turbo.git", tag = "turbopack-240614.1", default-features = false }
# General Deps
......
......@@ -6,6 +6,11 @@ license = "MPL-2.0"
edition = "2021"
autobenches = false
[[bin]]
name = "next-build-test"
path = "src/main.rs"
bench = false
[lints]
workspace = true
......
......@@ -26,7 +26,7 @@ pub async fn main_inner(
let mut file = std::fs::File::open(&path)
.with_context(|| format!("loading file at {}", path.display()))?;
let mut options: ProjectOptions = serde_json::from_reader(&mut file)?;
let mut options: ProjectOptions = serde_json::from_reader(&mut file).unwrap();
if matches!(strat, Strategy::Development) {
options.dev = true;
......@@ -42,7 +42,7 @@ pub async fn main_inner(
tracing::info!("collecting endpoints");
let entrypoints = tt
.run_once(async move { project.entrypoints().await })
.run_once(async move { Ok(project.entrypoints().await?) })
.await?;
let routes = if let Some(files) = files {
......
#![feature(future_join)]
#![feature(min_specialization)]
#![feature(arbitrary_self_types)]
use std::{convert::Infallible, str::FromStr, time::Instant};
use anyhow::Result;
use next_api::project::{DefineEnv, ProjectOptions};
use next_build_test::{main_inner, Strategy};
use next_core::tracing_presets::{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment