-
-
Notifications
You must be signed in to change notification settings - Fork 428
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #317 from johnnyreilly/master
More execution tests / started explicitly marking babel tests
- Loading branch information
Showing
71 changed files
with
155 additions
and
9 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...solveParent/expectedOutput-2.0/output.txt → ...solveParent/expectedOutput-2.0/output.txt
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
Asset Size Chunks Chunk Names | ||
bundle.js 1.74 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 349 bytes [rendered] | ||
[0] ./.test/es6resolveParent/index.tsx 349 bytes {0} [built] | ||
[0] ./.test/babel-es6resolveParent/index.tsx 349 bytes {0} [built] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
...sts/issue92/expectedOutput-2.0/output.txt → ...bel-issue92/expectedOutput-2.0/output.txt
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Asset Size Chunks Chunk Names | ||
bundle.js 1.91 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 444 bytes [rendered] | ||
[0] ./.test/issue92/app.ts 323 bytes {0} [built] | ||
[1] ./.test/issue92/submodule/submodule.tsx 121 bytes {0} [built] | ||
[0] ./.test/babel-issue92/app.ts 323 bytes {0} [built] | ||
[1] ./.test/babel-issue92/submodule/submodule.tsx 121 bytes {0} [built] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...jsxPreserve/expectedOutput-2.0/output.txt → ...jsxPreserve/expectedOutput-2.0/output.txt
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Asset Size Chunks Chunk Names | ||
bundle.js 2.28 kB 0 [emitted] main | ||
chunk {0} bundle.js (main) 808 bytes [rendered] | ||
[0] ./.test/jsxPreserve/app.tsx 766 bytes {0} [built] | ||
[0] ./.test/babel-jsxPreserve/app.tsx 766 bytes {0} [built] | ||
[1] external "react" 42 bytes {0} [not cacheable] |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 10 additions & 0 deletions
10
...cution-tests/1.8.0_babel-allowSyntheticDefaultImports/src/node_modules/mathutils/index.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
7 changes: 7 additions & 0 deletions
7
...-tests/1.8.0_babel-allowSyntheticDefaultImports/src/node_modules/mathutils/mathutils.d.ts
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
...on-tests/1.8.0_babel-allowSyntheticDefaultImports/src/node_modules/mathutils/package.json
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
5 changes: 5 additions & 0 deletions
5
test/execution-tests/1.8.0_babel-allowSyntheticDefaultImports/src/simple.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,5 @@ | ||
import mathutils from "mathutils"; | ||
|
||
export function usingMathutils() { | ||
return `with ${ mathutils.version } we can make ${ mathutils.adder(3, 4) }`; | ||
} |
7 changes: 7 additions & 0 deletions
7
test/execution-tests/1.8.0_babel-allowSyntheticDefaultImports/test/simple.tests.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 { usingMathutils } from "../src/simple"; | ||
|
||
describe("simple", () => { | ||
it("usingMathutils successfully uses the mathutils module", () => { | ||
expect(usingMathutils()).toBe("with 1.2 we can make 7"); | ||
}); | ||
}); |
13 changes: 13 additions & 0 deletions
13
test/execution-tests/1.8.0_babel-allowSyntheticDefaultImports/tsconfig.json
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,13 @@ | ||
{ | ||
"compilerOptions": { | ||
"allowSyntheticDefaultImports": true, | ||
"moduleResolution": "node", | ||
"module": "es2015", | ||
"noEmitOnError": false, | ||
"noImplicitAny": true, | ||
"preserveConstEnums": true, | ||
"removeComments": false, | ||
"suppressImplicitAnyIndexErrors": true, | ||
"target": "es2015" | ||
} | ||
} |
File renamed without changes.
33 changes: 33 additions & 0 deletions
33
test/execution-tests/1.8.0_babel-allowSyntheticDefaultImports/webpack.config.js
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,33 @@ | ||
/* eslint-disable no-var, strict, prefer-arrow-callback */ | ||
'use strict'; | ||
|
||
var path = require('path'); | ||
var webpack = require('webpack'); | ||
|
||
module.exports = { | ||
entry: './src/simple.ts', | ||
output: { | ||
filename: 'bundle.js' | ||
}, | ||
module: { | ||
loaders: [{ | ||
test: /\.ts(x?)$/, | ||
exclude: /node_modules/, | ||
loader: 'babel-loader?presets[]=es2015!ts-loader' | ||
}, { | ||
test: /\.js$/, | ||
exclude: /node_modules/, | ||
loader: 'babel', | ||
query: { | ||
presets: ['es2015'] | ||
} | ||
}] | ||
}, | ||
resolve: { | ||
// Add `.ts` and `.tsx` as a resolvable extension. | ||
extensions: ['', '.ts', '.tsx', '.js'] | ||
}, | ||
}; | ||
|
||
// for test harness purposes only, you would not need this in a normal project | ||
module.exports.resolveLoader = { alias: { 'ts-loader': path.join(__dirname, "../../../index.js") } } |
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,55 @@ | ||
/* eslint-disable no-var, strict */ | ||
'use strict'; | ||
var path = require('path'); | ||
var webpack = require('webpack'); | ||
var webpackConfig = require('./webpack.config.js'); | ||
|
||
module.exports = function(config) { | ||
config.set({ | ||
browsers: [ 'PhantomJS' ], | ||
|
||
files: [ | ||
// This ensures we have the es6 shims in place from babel and then loads all the tests | ||
'main.js' | ||
], | ||
|
||
port: 9876, | ||
|
||
frameworks: [ 'jasmine' ], | ||
|
||
logLevel: config.LOG_INFO, //config.LOG_DEBUG | ||
|
||
preprocessors: { | ||
'main.js': [ 'webpack', 'sourcemap' ] | ||
}, | ||
|
||
webpack: { | ||
devtool: 'inline-source-map', | ||
debug: true, | ||
module: { | ||
loaders: webpackConfig.module.loaders | ||
}, | ||
resolve: webpackConfig.resolve, | ||
|
||
// for test harness purposes only, you would not need this in a normal project | ||
resolveLoader: webpackConfig.resolveLoader | ||
}, | ||
|
||
webpackMiddleware: { | ||
quiet: true, | ||
stats: { | ||
colors: true | ||
} | ||
}, | ||
|
||
// reporter options | ||
mochaReporter: { | ||
colors: { | ||
success: 'bgGreen', | ||
info: 'cyan', | ||
warning: 'bgBlue', | ||
error: 'bgRed' | ||
} | ||
} | ||
}); | ||
}; |
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,4 @@ | ||
import 'babel-polyfill'; | ||
|
||
const testsContext = require.context('./', true, /\.tests\.ts(x?)$/); | ||
testsContext.keys().forEach(testsContext); |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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 @@ | ||
{ | ||
"name": "simple", | ||
"version": false, | ||
"globalDependencies": { | ||
"jasmine": "github:DefinitelyTyped/DefinitelyTyped/jasmine/jasmine.d.ts#fe563dff3428bac1260d1794e2c2ecf8f097535a" | ||
} | ||
} |
File renamed without changes.
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