-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Will Binns-Smith
committed
Jun 1, 2019
1 parent
557c622
commit 7615a17
Showing
6 changed files
with
252 additions
and
197 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import assert from 'assert'; | ||
import path from 'path'; | ||
import * as fs from '@parcel/fs'; | ||
import {bundle, run, distDir} from '@parcel/test-utils'; | ||
import tscConfigContents from '@parcel/config-tsc'; | ||
|
||
const config = { | ||
...tscConfigContents, | ||
filePath: require.resolve('@parcel/config-tsc') | ||
}; | ||
|
||
describe('typescript', function() { | ||
it('should support loading tsconfig.json', async () => { | ||
let b = await bundle( | ||
path.join(__dirname, '/integration/typescript-config/index.ts'), | ||
{config} | ||
); | ||
|
||
let output = await run(b); | ||
assert.equal(output, 2); | ||
|
||
let js = await fs.readFile(path.join(distDir, 'index.js'), 'utf8'); | ||
assert(!js.includes('/* test comment */')); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.