@toptal/davinci-code 1.4.1-alpha-fx-2279-replace-react-hot-loader-with-fast-refresh.1347 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Change Log
2
2
 
3
+ ## 1.5.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#1101](https://github.com/toptal/davinci/pull/1101) [`c70fcbd0`](https://github.com/toptal/davinci/commit/c70fcbd019b515bd8826f1d40ce5ed0e2e0bd977) Thanks [@dmaklygin1](https://github.com/dmaklygin1)! - fix: update test template according to agreement
8
+
3
9
  ## 1.4.0
4
10
 
5
11
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  ---
2
- to: src/modules/<%= h.changeCase.paramCase(moduleName) %>/components/<%= h.changeCase.pascalCase(name) %>/test.tsx
2
+ to: src/modules/<%= h.changeCase.paramCase(moduleName) %>/components/<%= h.changeCase.pascalCase(name) %>/<%= h.changeCase.pascalCase(name) %>.test.tsx
3
3
  ---
4
4
  <%
5
5
  Name = h.changeCase.pascalCase(name)
@@ -18,15 +18,16 @@ const renderTest<%= Name %> = (
18
18
  return render(<<%= Name %>>{children}</<%= Name %>>)
19
19
  }
20
20
 
21
- afterEach(cleanup)
22
-
23
21
  describe('<%= Name %>', () => {
24
22
  let api: RenderResult
25
23
 
26
24
  beforeEach(() => {
27
25
  api = renderTest<%= Name %>(null, {})
28
26
  })
29
- test('default render', () => {
27
+
28
+ afterEach(cleanup)
29
+
30
+ it('renders component', () => {
30
31
  const { container } = api
31
32
 
32
33
  expect(container).toMatchSnapshot()
@@ -0,0 +1,38 @@
1
+ {
2
+ "name": "@toptal/davinci-code",
3
+ "version": "1.5.0",
4
+ "description": "Code generation package for frontend applications",
5
+ "publishConfig": {
6
+ "access": "public"
7
+ },
8
+ "keywords": [
9
+ "code",
10
+ "templates",
11
+ "generator"
12
+ ],
13
+ "author": "Toptal",
14
+ "homepage": "https://github.com/toptal/davinci/tree/master/packages/code#readme",
15
+ "license": "ISC",
16
+ "bin": {
17
+ "davinci-code": "./bin/davinci-code.js"
18
+ },
19
+ "main": "./src/index.js",
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/toptal/davinci.git"
23
+ },
24
+ "scripts": {
25
+ "build:package": "../../bin/build-package.js",
26
+ "prepublishOnly": "../../bin/prepublish.js",
27
+ "test": "echo \"Error: run tests from root\" && exit 1"
28
+ },
29
+ "bugs": {
30
+ "url": "https://github.com/toptal/davinci/issues"
31
+ },
32
+ "dependencies": {
33
+ "@toptal/davinci-cli-shared": "^1.5.0",
34
+ "hygen": "^6.1.0",
35
+ "lodash.camelcase": "^4.3.0",
36
+ "lodash.kebabcase": "^4.1.1"
37
+ }
38
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toptal/davinci-code",
3
- "version": "1.4.1-alpha-fx-2279-replace-react-hot-loader-with-fast-refresh.1347+8585b28",
3
+ "version": "1.5.0",
4
4
  "description": "Code generation package for frontend applications",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -30,10 +30,9 @@
30
30
  "url": "https://github.com/toptal/davinci/issues"
31
31
  },
32
32
  "dependencies": {
33
- "@toptal/davinci-cli-shared": "1.5.1-alpha-fx-2279-replace-react-hot-loader-with-fast-refresh.1347+8585b28",
33
+ "@toptal/davinci-cli-shared": "^1.5.0",
34
34
  "hygen": "^6.1.0",
35
35
  "lodash.camelcase": "^4.3.0",
36
36
  "lodash.kebabcase": "^4.1.1"
37
- },
38
- "gitHead": "8585b287ba774782c2d4fd77dcebd06b74ff5505"
37
+ }
39
38
  }