Skip to content

Commit a8e9e76

Browse files
committed
rewatch tests
1 parent 3a1596a commit a8e9e76

File tree

10 files changed

+38
-0
lines changed

10 files changed

+38
-0
lines changed

rewatch/testrepo/packages/deprecated-config/rescript.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"in-source": true
1111
},
1212
"suffix": ".mjs",
13+
"ignored-dirs": ["scripts"],
14+
"some-new-field": true,
1315
"bs-dependencies": [],
1416
"bs-dev-dependencies": [],
1517
"bsc-flags": []

rewatch/tests/snapshots/bs-dev-dependency-used-by-non-dev-source.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Use 'dev-dependencies' instead.
1111
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1212
Use 'compiler-flags' instead.
1313

14+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
15+
16+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.
17+
1418
We've found a bug for you!
1519
/packages/with-dev-deps/src/FileToTest.res:2:6-11
1620

rewatch/tests/snapshots/clean-rebuild.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ Use 'dev-dependencies' instead.
1010

1111
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1212
Use 'compiler-flags' instead.
13+
14+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript's new build system (rewatch).
15+
16+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.

rewatch/tests/snapshots/dependency-cycle.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Use 'dev-dependencies' instead.
1111
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1212
Use 'compiler-flags' instead.
1313

14+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
15+
16+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.
17+
1418
Can't continue... Found a circular dependency in your code:
1519
Dep01 (packages/dep01/src/Dep01.res)
1620
→ Dep02 (packages/dep02/src/Dep02.res)

rewatch/tests/snapshots/remove-file.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Use 'dev-dependencies' instead.
1111
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1212
Use 'compiler-flags' instead.
1313

14+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
15+
16+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.
17+
1418
We've found a bug for you!
1519
/packages/dep01/src/Dep01.res:3:9-17
1620

rewatch/tests/snapshots/rename-file-internal-dep-namespace.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Use 'dev-dependencies' instead.
1111
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1212
Use 'compiler-flags' instead.
1313

14+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
15+
16+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.
17+
1418
We've found a bug for you!
1519
/packages/new-namespace/src/NS_alias.res:2:1-16
1620

rewatch/tests/snapshots/rename-file-internal-dep.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Use 'dev-dependencies' instead.
1111
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1212
Use 'compiler-flags' instead.
1313

14+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
15+
16+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.
17+
1418
We've found a bug for you!
1519
/packages/main/src/Main.res:4:13-29
1620

rewatch/tests/snapshots/rename-file-with-interface.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ Use 'dev-dependencies' instead.
1111

1212
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1313
Use 'compiler-flags' instead.
14+
15+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
16+
17+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.

rewatch/tests/snapshots/rename-file.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ Use 'dev-dependencies' instead.
1010

1111
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1212
Use 'compiler-flags' instead.
13+
14+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
15+
16+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.

rewatch/tests/snapshots/rename-interface-file.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,7 @@ Use 'dev-dependencies' instead.
1111

1212
The field 'bsc-flags' found in the package config of '@testrepo/deprecated-config' is deprecated and will be removed in a future version.
1313
Use 'compiler-flags' instead.
14+
15+
The field 'ignored-dirs' found in the package config of '@testrepo/deprecated-config' is not supported by ReScript 12's new build system.
16+
17+
Unknown field 'some-new-field' found in the package config of '@testrepo/deprecated-config'. This option will be ignored.

0 commit comments

Comments
 (0)