chore: fix path and samples for lexical-mdx tests (#9433)
Later we could add better examples that test complex use cases, but at least this allows the code to compile.
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
export const docsBasePath = '/Users/alessio/Documents/payloadcms-mdx-mock/docs'
|
||||
import path from 'path'
|
||||
import { fileURLToPath } from 'url'
|
||||
|
||||
export const docsBasePath =
|
||||
typeof window === 'undefined'
|
||||
? path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../../sampleDocs')
|
||||
: null
|
||||
export const languages = {
|
||||
ts: 'TypeScript',
|
||||
plaintext: 'Plain Text',
|
||||
|
||||
3
test/lexical-mdx/sampleDocs/test.mdx
Normal file
3
test/lexical-mdx/sampleDocs/test.mdx
Normal file
@@ -0,0 +1,3 @@
|
||||
# You can write MDX here
|
||||
|
||||
Write whatever content you want for testing purposes
|
||||
Reference in New Issue
Block a user