Skip to content

Commit 294960c

Browse files
author
Diego Ferreiro Val
committed
Cleanup
1 parent 9775f86 commit 294960c

File tree

16 files changed

+95
-19
lines changed

16 files changed

+95
-19
lines changed

.circleci/config.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: circleci/node:10.15.1-browsers
6+
working_directory: ~/repo
7+
8+
steps:
9+
- checkout
10+
11+
# Download and cache dependencies
12+
- restore_cache:
13+
keys:
14+
- v1-dependencies-{{ checksum "package.json" }}
15+
# fallback to using the latest cache if no exact match is found
16+
- v1-dependencies-
17+
18+
- run: yarn install
19+
20+
- save_cache:
21+
paths:
22+
- node_modules
23+
key: v1-dependencies-{{ checksum "package.json" }}
24+
25+
# run linter!
26+
- run: yarn lint
27+
28+
# run tests!
29+
- run: yarn test
30+
31+
workflows:
32+
version: 2
33+
build_and_test:
34+
jobs:
35+
- build

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
__tests__/

LICENSE

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
MIT LICENSE
2+
3+
Copyright (c) 2018, Salesforce.com, Inc.
4+
All rights reserved.
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
7+
8+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
9+
10+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

README.md

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Lightning Web Components Testing Repository
2+
3+
This repository contains the source code of Testing utilities for Lightning Web Components. Additionally, it contains examples, documentation, meeting notes, and discussion notes for developers [contributing](CONTRIBUTING.md) or using Lightning Web Components.
4+
5+
## Getting Started
6+
7+
Read the [Lightning Web Components Dev Guide](https://lwc.dev/guide/introduction).
8+
9+
## Contributing
10+
11+
Please refer to Lightning Web Components contributing guide [here](https://github.com/salesforce/lwc/blob/master/CONTRIBUTING.md).
12+
13+
## License
14+
15+
The [Salesforce Developer MSA](http://www.sfdcstatic.com/assets/pdf/misc/salesforce_Developer_MSA.pdf) governs your use of Lightning Web Components foundation.

lerna.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
"npmClient": "yarn",
99
"useWorkspaces": true,
1010
"version": "0.40.1"
11-
}
11+
}

packages/@lwc/jest-preset/CONTRIBUTING.md

-3
This file was deleted.

packages/@lwc/jest-preset/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"Jest",
88
"LWC"
99
],
10+
"files": [
11+
"/src/stubs/*.js",
12+
"/src/*.js"
13+
],
1014
"main": "jest-preset.js",
1115
"peerDependencies": {
1216
"jest": ">= 23.0.0"

packages/@lwc/jest-resolver/CONTRIBUTING.md

-3
This file was deleted.

packages/@lwc/jest-resolver/package.json

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77
"Jest",
88
"LWC"
99
],
10+
"files": [
11+
"/resources/",
12+
"/src/index.js"
13+
],
1014
"license": "MIT",
1115
"devDependencies": {
1216
"@lwc/engine": "0.40.1",

packages/@lwc/jest-serializer/CONTRIBUTING.md

-3
This file was deleted.
+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## jest-serializer
2+
3+
Standarize snapshots for shadow-dom

packages/@lwc/jest-serializer/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@lwc/jest-serializer",
3-
"version": "0.40.1",
3+
"version": "0.40.2-alpha.0",
44
"description": "Custom Jest snapshot serializer",
55
"main": "index.js",
66
"license": "MIT",

packages/@lwc/jest-transformer/CONTRIBUTING.md

-3
This file was deleted.

packages/@lwc/jest-transformer/package.json

+7-3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
"jest",
99
"lwc"
1010
],
11+
"files": [
12+
"/src/index.js",
13+
"/src/transforms/*.js"
14+
],
1115
"dependencies": {
1216
"@babel/core": "7.1.0",
1317
"@babel/plugin-transform-modules-commonjs": "7.1.0",
@@ -16,8 +20,8 @@
1620
"babel-preset-jest": "^24.0.0"
1721
},
1822
"peerDependencies": {
19-
"@lwc/compiler": "~0.40",
20-
"@lwc/engine": "~0.40",
23+
"@lwc/compiler": "*",
24+
"@lwc/engine": "*",
2125
"jest": ">= 23.0.0"
2226
},
2327
"devDependencies": {
@@ -29,4 +33,4 @@
2933
"engines": {
3034
"node": ">=10"
3135
}
32-
}
36+
}

packages/@lwc/test-utils/package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"name": "@lwc/test-utils",
3-
"version": "0.40.1",
3+
"version": "0.40.2-alpha.0",
44
"description": "Test utilities for LWC",
55
"main": "index.js",
66
"license": "MIT",
7-
"keywords": [ "LWC" ]
7+
"keywords": [
8+
"LWC"
9+
]
810
}

yarn.lock

+10
Original file line numberDiff line numberDiff line change
@@ -1438,6 +1438,11 @@
14381438
resolved "https://registry.yarnpkg.com/@lwc/errors/-/errors-0.40.1.tgz#5894c4883b408bfb0d4e6214f9fa5cdd2715f94a"
14391439
integrity sha512-ixWUAVNgpZP3+5KqxK5EP0nSeYGBGXKmp6Bf0VZ5kqV+qMtUCyq+/CBPiKjuFXieAiBtPbz+BJd3CzEwzSbz/w==
14401440

1441+
"@lwc/jest-serializer@0.40.1", "@lwc/jest-serializer@~0.40.1":
1442+
version "0.40.1"
1443+
resolved "https://registry.yarnpkg.com/@lwc/jest-serializer/-/jest-serializer-0.40.1.tgz#3d5b1c45eb962a489702a4b9445e890f0e3b52ac"
1444+
integrity sha512-KK5FGDwl7fLThQE1qq2N7+0gWHcEV4AeL7QPLS9K1T4a7upuuLujsBE0b9hWwEcoE5E8CnCKTYvb4iIBtm2PKQ==
1445+
14411446
"@lwc/module-resolver@0.40.1":
14421447
version "0.40.1"
14431448
resolved "https://registry.yarnpkg.com/@lwc/module-resolver/-/module-resolver-0.40.1.tgz#846f655542fd7d8af01759467a9ce1d87b65b359"
@@ -1475,6 +1480,11 @@
14751480
he "^1.1.1"
14761481
parse5-with-errors "^4.0.1"
14771482

1483+
"@lwc/test-utils@0.40.1":
1484+
version "0.40.1"
1485+
resolved "https://registry.yarnpkg.com/@lwc/test-utils/-/test-utils-0.40.1.tgz#64a97eed0caa9bd2cf5830c8a06b3ca065a96d0d"
1486+
integrity sha512-VDaLcRAbEmwErxTPyIEK7bpQ1JIQW1c8hnZns7mbNgwpAxb4TtWU14dvytsuP/sEMcGa2TfRA/BC4fM/6tsggw==
1487+
14781488
"@lwc/wire-service@0.40.1":
14791489
version "0.40.1"
14801490
resolved "https://registry.yarnpkg.com/@lwc/wire-service/-/wire-service-0.40.1.tgz#e6d30875c87f208650ce6473fbfb1e5d9e28366a"

0 commit comments

Comments
 (0)