Skip to content

Commit

Permalink
test: add simple json test
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Oct 15, 2022
1 parent f7acbf4 commit 955a449
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/fixture/src/index.ts
@@ -1,4 +1,5 @@
import { arch } from 'os'
import testJSON from './test.json'

console.log('__filename', __filename)
console.log('__dirname', __dirname)
Expand All @@ -7,6 +8,7 @@ console.log('import.meta.url', import.meta.url)
console.log(arch())
console.log(require('os').arch())
console.log(require.resolve('rollup'))
console.log(testJSON)
import('os').then(os => console.log(os.arch()))

// @ts-ignore
Expand Down
3 changes: 3 additions & 0 deletions test/fixture/src/test.json
@@ -0,0 +1,3 @@
{
"works": "yes"
}

0 comments on commit 955a449

Please sign in to comment.