forked from date-fns/date-fns
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
…#875; closes date-fns#1066) * Setup Jest * Update Babel and Power Assert * Make test karma suite work * Fix multiple it used instead of describe * Fix accidentally disabled tests * Upgrade Sinon * Add Node.js suite to Travis CI * Remove node_modules from .flowconfig ignore * Remove console.log from a test * Use regexp for exception assertion to make it work in any Node.js * Disable Sauce Connect because it gives me headaches
- Loading branch information
1 parent
8b8952a
commit 4e4d41a
Showing
75 changed files
with
6,542 additions
and
4,372 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
{ | ||
"presets": ["es2015", "babel-preset-power-assert"], | ||
"presets": [ | ||
["@babel/preset-env", { "modules": "commonjs" }], | ||
"babel-preset-power-assert" | ||
], | ||
"plugins": ["add-module-exports"] | ||
} |
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,4 @@ | ||
[ignore] | ||
.*node_modules* | ||
.*examples* | ||
[options] | ||
suppress_comment= \\(.\\|\n\\)*\\$ExpectedMistake |
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 @@ | ||
nodejs 10.15.3 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
verbose: false, | ||
setupFiles: ['jest-plugin-context/setup'], | ||
testPathIgnorePatterns: ['<rootDir>/test.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
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,21 @@ | ||
#!/bin/bash | ||
|
||
# The script runs the test suite using Jest in different Node.js versions. | ||
# | ||
# It's a part of the test process. | ||
|
||
set -ex | ||
|
||
export PATH="$(yarn bin):$PATH" | ||
|
||
# Update and source nvm | ||
curl -o ~/.nvm/nvm.sh https://raw.githubusercontent.com/nvm-sh/nvm/v0.34.0/nvm.sh | ||
source ~/.nvm/nvm.sh | ||
|
||
for version in 8 9 10 11 12 | ||
do | ||
echo "Running tests using Node.js $version" | ||
nvm install $version | ||
npm rebuild | ||
jest | ||
done |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
// @flow | ||
/* eslint-env mocha */ | ||
|
||
// import assert from 'power-assert' | ||
import assert from 'power-assert' | ||
// import locale from '.' | ||
|
||
describe.skip('ar locale', function () { | ||
|
||
describe('ar locale', function() { | ||
it('hopes to get tests one day', () => { | ||
assert('hope') | ||
}) | ||
}) |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
// @flow | ||
/* eslint-env mocha */ | ||
|
||
// import assert from 'power-assert' | ||
import assert from 'power-assert' | ||
// import locale from '.' | ||
|
||
describe.skip('bg locale', function () { | ||
|
||
describe('bg locale', function() { | ||
it('hopes to get tests one day', () => { | ||
assert('hope') | ||
}) | ||
}) |
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 |
---|---|---|
@@ -1,9 +1,11 @@ | ||
// @flow | ||
/* eslint-env mocha */ | ||
|
||
// import assert from 'power-assert' | ||
import assert from 'power-assert' | ||
// import locale from '.' | ||
|
||
describe.skip('cs locale', function () { | ||
|
||
describe('cs locale', function() { | ||
it('hopes to get tests one day', () => { | ||
assert('hope') | ||
}) | ||
}) |
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.