-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate from jest to mocha + chai (#525)
- Loading branch information
Showing
34 changed files
with
1,133 additions
and
2,172 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
.nyc_output | ||
coverage/ | ||
dist/ | ||
node_modules/ | ||
|
||
packages/*/build/ | ||
packages/*/dist/ | ||
packages/*/node_modules/ | ||
packages/*/coverage/ | ||
|
||
bench/requests.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,9 @@ | ||
module.exports = { | ||
timeout: 10000, | ||
reporter: 'spec', | ||
require: ['ts-node/register'], | ||
retries: 2, | ||
color: false, | ||
extension: ['ts'], | ||
recursive: true, | ||
}; |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"extends": "./tsconfig", | ||
"compilerOptions": { | ||
"declaration": false, | ||
"declarationMap": false, | ||
"declarationDir": null, | ||
"composite": false, | ||
"incremental": true, | ||
"module": "es6", | ||
"outDir": "dist/es6" | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,9 @@ | ||
// @ts-ignore | ||
import * as tldMinified from '../dist/index.umd.min'; | ||
import * as tld from '../index'; | ||
import 'mocha'; | ||
|
||
import { publicSuffixListTests } from 'tldts-tests'; | ||
|
||
import * as tld from '../index'; | ||
|
||
describe('tldts classic', () => { | ||
publicSuffixListTests(tld.getDomain); | ||
}); | ||
|
||
describe('tldts minified', () => { | ||
publicSuffixListTests(tldMinified.getDomain); | ||
}); |
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,13 +1,9 @@ | ||
// @ts-ignore | ||
import * as tldMinified from '../dist/index.umd.min'; | ||
import * as tld from '../index'; | ||
import 'mocha' | ||
|
||
import { tldtsTests } from 'tldts-tests'; | ||
|
||
import * as tld from '../index'; | ||
|
||
describe('tldts classic', () => { | ||
tldtsTests(tld); | ||
}); | ||
|
||
describe('tldts minified', () => { | ||
tldtsTests(tldMinified); | ||
}); |
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,12 @@ | ||
{ | ||
"extends": "./tsconfig", | ||
"compilerOptions": { | ||
"declaration": false, | ||
"declarationMap": false, | ||
"declarationDir": null, | ||
"composite": false, | ||
"incremental": true, | ||
"module": "es6", | ||
"outDir": "dist/es6" | ||
} | ||
} |
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.