Skip to content

Commit

Permalink
✨ introducing first version of angular 🎉
Browse files Browse the repository at this point in the history
  • Loading branch information
Swiip authored and FBerthelot committed Apr 19, 2019
1 parent b201338 commit 43c2eb0
Show file tree
Hide file tree
Showing 15 changed files with 474 additions and 6 deletions.
8 changes: 8 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = {
preset: 'ts-jest/presets/js-with-babel',
globals: {
'ts-jest': {
tsConfig: 'packages/component-test-utils-angular/tsconfig.json'
}
}
};
132 changes: 132 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"test": "jest --coverage",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"tdd": "jest --watch",
"changelog": "gitmoji-changelog"
"changelog": "gitmoji-changelog",
"doc": "cd website && npm run start"
},
"repository": {
"type": "git",
Expand All @@ -35,6 +36,9 @@
"devDependencies": {
"@babel/preset-env": "^7.3.4",
"@babel/preset-react": "^7.0.0",
"@types/jest": "^24.0.11",
"@typescript-eslint/eslint-plugin": "^1.6.0",
"@typescript-eslint/parser": "^1.6.0",
"babel-jest": "^24.5.0",
"coveralls": "^3.0.3",
"eslint": "^5.15.1",
Expand All @@ -44,6 +48,8 @@
"eslint-plugin-react-hooks": "^1.5.0",
"gitmoji-changelog": "^1.1.0",
"jest": "^24.5.0",
"lerna": "^3.13.1"
"lerna": "^3.13.1",
"ts-jest": "^24.0.2",
"typescript": "^3.4.3"
}
}
11 changes: 11 additions & 0 deletions packages/component-test-utils-angular/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"parser": "@typescript-eslint/parser",
"plugins": ["@typescript-eslint"],
"extends": ["plugin:@typescript-eslint/recommended"],
"rules": {
"new-cap": ["error", { "capIsNew": false }],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-parameter-properties": "off",
"@typescript-eslint/explicit-function-return-type": "off"
}
}
1 change: 0 additions & 1 deletion packages/component-test-utils-angular/index.js

This file was deleted.

11 changes: 11 additions & 0 deletions packages/component-test-utils-angular/index.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import defaultExport, {shallow} from './index';

describe('component-test-utils-angular', () => {
it('should export by default an object with all methods', () => {
expect(typeof defaultExport.shallow).toBe('function');
});

it('should export shallow method directly', () => {
expect(typeof shallow).toBe('function');
});
});
4 changes: 4 additions & 0 deletions packages/component-test-utils-angular/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import {shallow} from './src/shallow';

export {shallow} from './src/shallow';
export default {shallow};
94 changes: 94 additions & 0 deletions packages/component-test-utils-angular/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 14 additions & 2 deletions packages/component-test-utils-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@
"name": "component-test-utils-angular",
"version": "1.0.0-alpha.1",
"description": " Test angular component the same way as ohter frameworks",
"main": "index.js",
"main": "build/index.js",
"scripts": {
"start": "tsc && node .",
"test": "echo \"to launch tests, start it from component-tet-utils root folder\" && exit 1"
},
"repository": {
Expand All @@ -22,5 +23,16 @@
"url": "https://github.com/FBerthelot/component-test-utils/issues"
},
"homepage": "https://github.com/FBerthelot/component-test-utils#readme",
"gitHead": "13c420014036438bcb2650a74976a1cf04ff2034"
"gitHead": "13c420014036438bcb2650a74976a1cf04ff2034",
"dependencies": {
"@angular/animations": "^7.2.12",
"@angular/common": "^7.2.12",
"@angular/compiler": "^7.2.11",
"@angular/core": "^7.2.11",
"@angular/http": "^7.2.12",
"@angular/platform-browser": "^7.2.11",
"@angular/platform-browser-dynamic": "^7.2.11",
"@angular/platform-server": "^7.2.12",
"core-js": "^3.0.1"
}
}
Loading

0 comments on commit 43c2eb0

Please sign in to comment.