Skip to content

Commit

Permalink
Use re-export to test
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Jun 3, 2024
1 parent 9c61948 commit fd718fe
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { env } from './env'

console.log({ env })
export default `${env} abc`
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import '@repo/internal-pkg'
import value from '@repo/internal-pkg'

export default function Home() {
return <div>Hello world</div>
return <h1>Hello world {value}</h1>
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ describe('self-importing-package-monorepo', () => {

it('should work using cheerio', async () => {
const $ = await next.render$('/')
expect($('h1').text()).toBe('THIS IS THE OTHER FILE')
expect($('h1').text()).toBe('Hello world test abc')
})
})

0 comments on commit fd718fe

Please sign in to comment.