File tree 2 files changed +2
-10
lines changed
2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 1
- const { env } = require ( 'node:process' )
2
-
3
- env . SEAM_PUBLISHABLE_KEY = 'seam_pk1fGd41X_zKs0ZELRWEc8nWxiBsrTFC98'
4
-
5
1
/** @type {import('ts-jest').JestConfigWithTsJest } */
6
2
module . exports = {
7
3
preset : 'ts-jest/presets/default-esm' ,
Original file line number Diff line number Diff line change 1
- import { env } from 'node:process'
2
-
3
1
import { render } from '@testing-library/react'
4
2
import { type ReactElement , type ReactNode } from 'react'
5
3
6
4
import { SeamProvider } from 'index.js'
7
5
6
+ const publishableKey = 'seam_pk1fGd41X_zKs0ZELRWEc8nWxiBsrTFC98'
7
+
8
8
const Providers = ( { children } : { children : ReactNode } ) : ReactElement => {
9
- const publishableKey = env [ 'SEAM_PUBLISHABLE_KEY' ]
10
- if ( publishableKey == null ) {
11
- throw new Error ( 'Missing SEAM_PUBLISHABLE_KEY' )
12
- }
13
9
return < SeamProvider publishableKey = { publishableKey } > { children } </ SeamProvider >
14
10
}
15
11
You can’t perform that action at this time.
0 commit comments