-
Notifications
You must be signed in to change notification settings - Fork 453
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
Showing
7 changed files
with
540 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import path from 'path' | ||
|
||
import { json as runWithJson } from '../run-jest' | ||
import { runNpmInstall } from '../utils' | ||
|
||
const DIR_NAME = 'custom-compiler' | ||
|
||
describe('ttypescript', () => { | ||
const TTS_DIR_NAME = 'ttypescript' | ||
|
||
beforeAll(() => { | ||
runNpmInstall(path.join(__dirname, '..', DIR_NAME, TTS_DIR_NAME)) | ||
}) | ||
|
||
test(`successfully runs the tests inside ${DIR_NAME}/${TTS_DIR_NAME}`, () => { | ||
const { json } = runWithJson(`${DIR_NAME}/${TTS_DIR_NAME}`) | ||
|
||
expect(json.success).toBe(true) | ||
}) | ||
}) |
7 changes: 7 additions & 0 deletions
7
e2e/custom-compiler/ttypescript/__tests__/direct-import.spec.ts
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,7 @@ | ||
import { getWelcomeMessage } from '@share/foo' | ||
|
||
test('should return welcome message', () => { | ||
const userName = 'github-user' | ||
|
||
expect(getWelcomeMessage(userName)).toEqual(`yolo ${userName}`) | ||
}) |
Oops, something went wrong.