@@ -61,7 +61,7 @@ test('import from a v1 state as JSON', async (t) => {
6161 // make a few basic assertions about the project
6262 t . is ( proj . id , 'my-workflow' ) ;
6363 t . is ( proj . name , 'My Workflow' ) ;
64- t . is ( proj . openfn . uuid , 'e16c5f09-f0cb-4ba7-a4c2-73fcb2f29d00' ) ;
64+ t . is ( proj . openfn ! . uuid , 'e16c5f09-f0cb-4ba7-a4c2-73fcb2f29d00' ) ;
6565 t . is ( proj . options . retention_policy , 'retain_all' ) ;
6666
6767 t . is ( proj . workflows . length , 1 ) ;
@@ -73,7 +73,7 @@ test('import from a v1 state as YAML', async (t) => {
7373 // make a few basic assertions about the project
7474 t . is ( proj . id , 'aaa' ) ;
7575 t . is ( proj . name , 'aaa' ) ;
76- t . is ( proj . openfn . uuid , '1234' ) ;
76+ t . is ( proj . openfn ! . uuid , '1234' ) ;
7777 t . is ( proj . options . retention_policy , 'retain_all' ) ;
7878
7979 t . is ( proj . workflows . length , 1 ) ;
@@ -94,12 +94,13 @@ test('import a legacy v2 project (cli.version === 2) as JSON', async (t) => {
9494} ) ;
9595
9696test ( 'import from a v2 project as JSON' , async ( t ) => {
97+ // @ts -ignore
9798 const proj = await Project . from ( 'project' , v2 . json , { alias : 'main' } ) ;
9899
99100 t . is ( proj . id , 'my-project' ) ;
100101 t . is ( proj . name , 'My Project' ) ;
101102 t . is ( proj . cli . alias , 'main' ) ;
102- t . is ( proj . sandbox . parentId , 'abcd' ) ;
103+ t . is ( proj . sandbox ! . parentId , 'abcd' ) ;
103104 t . is ( proj . options . env , 'dev' ) ;
104105 t . is ( proj . options . color , 'red' ) ;
105106 t . is ( proj . openfn ! . uuid , '1234' ) ;
@@ -153,6 +154,7 @@ test('import from a v2 project as JSON', async (t) => {
153154} ) ;
154155
155156test ( 'import from a v2 project with alias' , async ( t ) => {
157+ // @ts -ignore
156158 const proj = await Project . from ( 'project' , v2 . json , { alias : 'staging' } ) ;
157159
158160 t . is ( proj . id , 'my-project' ) ;
@@ -167,7 +169,7 @@ test('import from a v2 project as YAML', async (t) => {
167169 t . is ( proj . cli . alias , 'main' ) ;
168170 t . is ( proj . openfn ! . uuid , '1234' ) ;
169171 t . is ( proj . openfn ! . endpoint , 'https://app.openfn.org' ) ;
170- t . is ( proj . sandbox . parentId , 'abcd' ) ;
172+ t . is ( proj . sandbox ! . parentId , 'abcd' ) ;
171173 t . is ( proj . options . env , 'dev' ) ;
172174 t . is ( proj . options . color , 'red' ) ;
173175
0 commit comments