Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

test config#7

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
ShMcK merged 1 commit intomasterfromtest/config
May 30, 2020
Merged
Show file tree
Hide file tree
Changes fromall commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test config
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
@ShMcK
ShMcK committedMay 30, 2020
commit8da5c351c608bd2a34e1bcdd2db226812d81a34c
10 changes: 5 additions & 5 deletionssrc/templates/coderoad.yaml
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -29,11 +29,11 @@ config:
commands:
[]
# - npm install
## App versions helps to ensure compatability with the Extension
appVersions:
{}
## Ensure compatability with a minimal VSCode CodeRoad version
# vscode: '>=0.7.0'
## App versions helps to ensure compatability with the Extension
appVersions:
{}
## Ensure compatability with a minimal VSCode CodeRoad version
# vscode: '>=0.7.0'
## Repo information to load code from
##
repo:
Expand Down
62 changes: 62 additions & 0 deletionstests/parse.test.ts
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -181,4 +181,66 @@ levels:
expect(result.summary.description).toBe(expected.summary.description);
expect(result.levels[0].content).toBe(expected.levels[0].content);
});

it("should parse the tutorial config", () => {
const md = `# Title

Description.
`;
const yaml = `
config:
testRunner:
command: ./node_modules/.bin/mocha
args:
filter: --grep
tap: --reporter=mocha-tap-reporter
directory: coderoad
setup:
commits:
- abcdefg1
commands: []
appVersions:
vscode: '>=0.7.0'
repo:
uri: https://path.to/repo
branch: aBranch
dependencies:
- name: node
version: '>=10'
`;
const result = parse(md, yaml);
const expected = {
summary: {
description: "Description.\n\nSecond description line",
},
config: {
testRunner: {
command: "./node_modules/.bin/mocha",
args: {
filter: "--grep",
tap: "--reporter=mocha-tap-reporter",
},
directory: "coderoad",
setup: {
commits: ["abcdefg1"],
commands: [],
},
},
repo: {
uri: "https://path.to/repo",
branch: "aBranch",
},
dependencies: [
{
name: "node",
version: ">=10",
},
],
appVersions: {
vscode: ">=0.7.0",
},
},
};
expect(result.config).toEqual(expected.config);
});
});

[8]ページ先頭

©2009-2025 Movatter.jp