-
Notifications
You must be signed in to change notification settings - Fork 62
Add Typescript deps and build #148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
267f1b3
bff58ff
c00028d
9ab5072
28d5f34
19c7ff6
978f5c1
c170e24
8e7e30e
dc82980
d0a5264
bffc90b
f730d0e
5fb71f9
ce03313
7fb47e7
9655030
df270ee
23a80b0
a40f6c6
b9c3bd0
89da99b
f78dad1
36e4713
8edd845
0251dd6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,21 @@ | ||
| # System | ||
| .DS_Store | ||
|
|
||
| # Dependencies | ||
| node_modules/ | ||
|
|
||
| # Editor | ||
| ignore | ||
| .vscode | ||
| test/remote | ||
|
|
||
| # Test generated | ||
| test/remote/ftp | ||
| coverage | ||
|
|
||
| # Developer | ||
| playground | ||
| .DS_Store | ||
| notes.md | ||
| .env | ||
| dist | ||
|
|
||
| # Built files | ||
| build |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| import type { Config } from "@jest/types"; | ||
| // Sync object | ||
| const config: Config.InitialOptions = { | ||
| verbose: true, | ||
| transform: { | ||
| "^.+\\.ts?$": "ts-jest", | ||
| }, | ||
| }; | ||
| export default config; | ||
Large diffs are not rendered by default.
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please don't remove this file |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,8 +2,7 @@ | |
|
|
||
| const path = require("path"); | ||
| var assert = require("assert"); | ||
|
|
||
| const expect = require("chai").expect; | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. please do not change test framework without further justification |
||
| const expect = require("jest").expect; | ||
|
|
||
| const lib = require("../src/lib"); | ||
|
|
||
|
|
@@ -51,7 +50,7 @@ describe("canIncludePath", () => { | |
| describe("dirParseSync", () => { | ||
| it("should throw on a bad start directory", () => { | ||
| const testDir = "./throw"; | ||
| assert.throws(() => lib.parseLocal(["*"], testDir, testDir), Error); | ||
| assert.throws(() => lib.parseLocal(["*"], [], testDir, testDir), Error); | ||
| }); | ||
| it("should traverse simple directory", () => { | ||
| const rootDir = path.join(__dirname, "../test/simple"); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| { | ||
| "compilerOptions": { | ||
| "outDir": "./build", | ||
| "allowJs": true, | ||
| "target": "es5", | ||
| "strict": true, | ||
| "esModuleInterop": true, | ||
| "skipLibCheck": true, | ||
| "allowSyntheticDefaultImports": true, | ||
| "forceConsistentCasingInFileNames": true, | ||
| "noFallthroughCasesInSwitch": true, | ||
| "module": "commonjs", | ||
| "moduleResolution": "node", | ||
| "resolveJsonModule": true, | ||
| "isolatedModules": true | ||
| }, | ||
| "include": ["./src/**/*"], | ||
| "exclude": ["./src/**/*.spec.js"] | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please dont change test framework in a PR about typescript