Skip to content

Commit f895563

Browse files
authored
Implement snapshot testing (#90)
1 parent a8d0b3c commit f895563

File tree

88 files changed

+10308
-8
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+10308
-8
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
/templates
2+
/testing/sandbox

.gitattributes

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,14 @@
1-
* eol=lf
1+
.circleci text eol=lf
2+
.github text eol=lf
3+
.eslintignore text eol=lf
4+
.eslintrc text eol=lf
5+
.gitattributes text eol=lf
6+
.gitignore text eol=lf
7+
*.js text eol=lf
8+
*.json text eol=lf
9+
*.md text eol=lf
10+
*.yml text eol=lf
11+
*.scss text eol=lf
12+
*.vue text eol=lf
13+
14+
*.png binary

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ jsconfig.json
77
node_modules/
88
npm-debug.log*
99
yarn-error.log*
10+
testing/sandbox/
11+
testing/__tests__/__diff_snapshots__/
1012

1113
# Mac OSX Finder files.
1214
**/.DS_Store

commands/application.angular.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function runSchematicCommand(schematicCommand, options, evaluatingOptions) {
1010
let collectionPath = collectionName;
1111

1212
if(options['c']) {
13-
collectionPath = `"${path.join(process.cwd(), options['c'])}"`;
13+
collectionPath = `${path.join(process.cwd(), options['c'])}`;
1414
delete options['c'];
1515
}
1616

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
'setupFilesAfterEnv': [
3+
'<rootDir>/testing/jest-setup.js'
4+
],
5+
'roots': [
6+
'<rootDir>/testing/__tests__'
7+
]
8+
};

0 commit comments

Comments
 (0)