Skip to content

Commit 78a3c3b

Browse files
committed
Fix test
1 parent b5eb6e7 commit 78a3c3b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

crates/turborepo-lib/src/query/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@ use turborepo_repository::package_graph::PackageName;
1818
use turborepo_scm::git::ChangedFiles;
1919

2020
use crate::{
21-
get_version,
22-
global_deps_package_change_mapper,
21+
get_version, global_deps_package_change_mapper,
2322
query::file::File,
2423
run::{builder::RunBuilder, Run},
2524
signal::SignalHandler,
@@ -45,6 +44,7 @@ pub enum Error {
4544
Path(#[from] turbopath::PathError),
4645
#[error(transparent)]
4746
UI(#[from] turborepo_ui::Error),
47+
#[error(transparent)]
4848
ChangeMapper(#[from] global_deps_package_change_mapper::Error),
4949
#[error(transparent)]
5050
Scm(#[from] turborepo_scm::Error),

turborepo-tests/integration/tests/affected.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Also with `affectedFiles` in `turbo query`
6464
"affectedFiles": {
6565
"items": [
6666
{
67-
"path": "apps/my-app/new.js",
67+
"path": "apps(\/|\\\\)my-app(\/|\\\\)new.js", (re)
6868
"affectedPackages": {
6969
"items": [
7070
{
@@ -133,7 +133,7 @@ Also with `affectedFiles` in `turbo query`
133133
"affectedFiles": {
134134
"items": [
135135
{
136-
"path": "apps/my-app/package.json",
136+
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
137137
"affectedPackages": {
138138
"items": [
139139
{
@@ -332,7 +332,7 @@ Also with `affectedFiles` in `turbo query`
332332
"affectedFiles": {
333333
"items": [
334334
{
335-
"path": "apps/my-app/package.json",
335+
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
336336
"affectedPackages": {
337337
"items": [
338338
{

turborepo-tests/integration/tests/command-query.t

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ Run the query
212212
WARNING query command is experimental and may change in the future
213213
{
214214
"data": {
215-
"version": "2.1.3-canary.2"
215+
"version": "[0-9]+\\.[0-9]+\\.[0-9]+(-canary\\.[0-9]+)?"
216216
},
217217
}
218218
@@ -222,7 +222,7 @@ Query a file
222222
{
223223
"data": {
224224
"file": {
225-
"path": "apps/my-app/package.json",
225+
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
226226
"contents": "{\n \"name\": \"my-app\",\n \"scripts\": {\n \"build\": \"echo building\",\n \"maybefails\": \"exit 4\"\n },\n \"dependencies\": {\n \"util\": \"*\"\n }\n}\n"
227227
}
228228
}
@@ -234,7 +234,7 @@ Get the file's package
234234
{
235235
"data": {
236236
"file": {
237-
"path": "apps/my-app/package.json",
237+
"path": "apps(\/|\\\\)my-app(\/|\\\\)package.json", (re)
238238
"package": {
239239
"name": "my-app"
240240
}

0 commit comments

Comments
 (0)