Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasLYang committed Oct 1, 2024
1 parent b5eb6e7 commit 78a3c3b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions crates/turborepo-lib/src/query/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,7 @@ use turborepo_repository::package_graph::PackageName;
use turborepo_scm::git::ChangedFiles;

use crate::{
get_version,
global_deps_package_change_mapper,
get_version, global_deps_package_change_mapper,
query::file::File,
run::{builder::RunBuilder, Run},
signal::SignalHandler,
Expand All @@ -45,6 +44,7 @@ pub enum Error {
Path(#[from] turbopath::PathError),
#[error(transparent)]
UI(#[from] turborepo_ui::Error),
#[error(transparent)]
ChangeMapper(#[from] global_deps_package_change_mapper::Error),
#[error(transparent)]
Scm(#[from] turborepo_scm::Error),
Expand Down
6 changes: 3 additions & 3 deletions turborepo-tests/integration/tests/affected.t
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Also with `affectedFiles` in `turbo query`
"affectedFiles": {
"items": [
{
"path": "apps/my-app/new.js",
"path": "apps(\/|\\\\)my-app(\/|\\\\)new.js", (re)
"affectedPackages": {
"items": [
{
Expand Down Expand Up @@ -133,7 +133,7 @@ Also with `affectedFiles` in `turbo query`
"affectedFiles": {
"items": [
{
"path": "apps/my-app/package.json",
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
"affectedPackages": {
"items": [
{
Expand Down Expand Up @@ -332,7 +332,7 @@ Also with `affectedFiles` in `turbo query`
"affectedFiles": {
"items": [
{
"path": "apps/my-app/package.json",
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
"affectedPackages": {
"items": [
{
Expand Down
6 changes: 3 additions & 3 deletions turborepo-tests/integration/tests/command-query.t
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ Run the query
WARNING query command is experimental and may change in the future
{
"data": {
"version": "2.1.3-canary.2"
"version": "[0-9]+\\.[0-9]+\\.[0-9]+(-canary\\.[0-9]+)?"
},
}
Expand All @@ -222,7 +222,7 @@ Query a file
{
"data": {
"file": {
"path": "apps/my-app/package.json",
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
"contents": "{\n \"name\": \"my-app\",\n \"scripts\": {\n \"build\": \"echo building\",\n \"maybefails\": \"exit 4\"\n },\n \"dependencies\": {\n \"util\": \"*\"\n }\n}\n"
}
}
Expand All @@ -234,7 +234,7 @@ Get the file's package
{
"data": {
"file": {
"path": "apps/my-app/package.json",
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
"package": {
"name": "my-app"
}
Expand Down

0 comments on commit 78a3c3b

Please sign in to comment.