1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`init --yes --private should create package.json with defaults and private true: init-yes-private 1`] = `
Object {
"license": "MIT",
"main": "index.js",
"name": "init-yes-private",
"private": true,
"version": "1.0.0",
}
`;
exports[`init --yes should create package.json with defaults: init-yes 1`] = `
Object {
"license": "MIT",
"main": "index.js",
"name": "init-yes",
"version": "1.0.0",
}
`;
exports[`init and give private empty: init-private-empty 1`] = `
Object {
"license": "MIT",
"main": "index.js",
"name": "private-empty",
"version": "1.0.0",
}
`;
exports[`init should use init-* configs when defined: init-config 1`] = `
Object {
"author": "Kittens McKitty <yarn@yarnpkg.com> (https://yarnpkg.com)",
"license": "BSD",
"main": "index.js",
"name": "init-config",
"private": true,
"version": "0.0.0-alpha",
}
`;
exports[`init using Github shorthand should resolve to full repository URL: init-github 1`] = `
Object {
"license": "MIT",
"main": "index.js",
"name": "hi-github",
"private": false,
"repository": "https://github.com/user/repo",
"version": "1.0.0",
}
`;
|