-
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
23 changed files
with
496 additions
and
178 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
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
Large diffs are not rendered by default.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,28 @@ | ||
import { configureTestCase } from '../__helpers__/test-case' | ||
import { PackageSets, allValidPackageSets } from '../__helpers__/templates' | ||
import { existsSync } from 'fs' | ||
|
||
describe('With unsupported version test', () => { | ||
const testCase = configureTestCase('simple') | ||
|
||
testCase.runWithTemplates([PackageSets.unsupportedVersion], 0, (runTest, { testLabel }) => { | ||
it(testLabel, () => { | ||
const result = runTest() | ||
expect(result.status).toBe(0) | ||
expect(result).toMatchSnapshot() | ||
}) | ||
}) | ||
}) | ||
|
||
describe('TS_JEST_DEBUG', () => { | ||
const testCase = configureTestCase('simple', { env: { TS_JEST_DEBUG: 'true' } }) | ||
|
||
testCase.runWithTemplates(allValidPackageSets, 0, (runTest, { templateName }) => { | ||
it(`should pass and create log file when using tempalte "${templateName}"`, () => { | ||
const result = runTest() | ||
expect(result.status).toBe(0) | ||
expect(existsSync(result.logFilePath)) | ||
expect(result.normalizedLogFileContent).toMatchSnapshot() | ||
}) | ||
}) | ||
}) |
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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
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.