File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
packages/integration-tests/src/test-projects/seed-test-project/amplify/seed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -3,13 +3,10 @@ import * as auth from 'aws-amplify/auth';
3
3
import type { Schema } from './../data/resource.js' ;
4
4
import { Amplify } from 'aws-amplify' ;
5
5
import { generateClient } from 'aws-amplify/api' ;
6
+ // @ts -expect-error this file will not exist until sandbox is created
7
+ import outputs from '../../amplify_outputs.json' ;
6
8
import { SemVer } from 'semver' ;
7
9
import crypto from 'node:crypto' ;
8
- import { readFile } from 'node:fs/promises' ;
9
-
10
- const outputFile = JSON . parse (
11
- await readFile ( '../../amplify_outputs.json' , { encoding : 'utf8' } ) ,
12
- ) ;
13
10
14
11
// TODO: this is a work around - in theory this should be fixed
15
12
// it seems like as of amplify v6 , some of the code only runs in the browser ...
@@ -22,7 +19,7 @@ if (process.versions.node) {
22
19
}
23
20
}
24
21
25
- Amplify . configure ( outputFile ) ;
22
+ Amplify . configure ( outputs ) ;
26
23
27
24
const dataClient = generateClient < Schema > ( ) ;
28
25
You can’t perform that action at this time.
0 commit comments