1
1
import { expect , test } from 'tstyche'
2
2
3
- import { createUploadsConfig , setupStorage } from 'src/index.js '
3
+ import { createUploadsConfig , setupStorage } from '@redwoodjs/storage '
4
4
5
5
import { MemoryStorage } from '../adapters/MemoryStorage/MemoryStorage.js'
6
6
import { type UploadsConfig } from '../prismaExtension.js'
7
7
8
- // Use the createUplodsConfig helper here....
8
+ // Use the createUploadsConfig helper here....
9
9
// otherwise the types won't be accurate
10
10
const uploadsConfig = createUploadsConfig ( {
11
11
dummy : {
@@ -25,7 +25,7 @@ const { saveFiles } = setupStorage({
25
25
26
26
// const prismaClient = new PrismaClient().$extends(storagePrismaExtension)
27
27
28
- test ( 'only configured models have savers' , async ( ) => {
28
+ test ( 'only configured models have savers' , ( ) => {
29
29
expect ( saveFiles ) . type . toHaveProperty ( 'forDummy' )
30
30
expect ( saveFiles ) . type . toHaveProperty ( 'forDumbo' )
31
31
@@ -52,7 +52,7 @@ test('inline config for save files is OK!', () => {
52
52
expect ( saveFiles ) . type . not . toHaveProperty ( 'forDumbo' )
53
53
} )
54
54
55
- test ( 'UploadsConfig accepts all available models with their fields' , async ( ) => {
55
+ test ( 'UploadsConfig accepts all available models with their fields' , ( ) => {
56
56
expect < UploadsConfig > ( ) . type . toHaveProperty ( 'dummy' )
57
57
expect < UploadsConfig > ( ) . type . toHaveProperty ( 'dumbo' )
58
58
expect < UploadsConfig > ( ) . type . toHaveProperty ( 'book' )
0 commit comments