Skip to content

Commit f1819f5

Browse files
Merge branch 'main' into feature/serializerOptions
2 parents 44dae1f + f9f9465 commit f1819f5

21 files changed

+4421
-3899
lines changed

.babelrc

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
{
2-
"presets": [
3-
"@babel/preset-env",
4-
"@babel/preset-react"
5-
],
6-
"plugins": [
7-
"@babel/plugin-proposal-object-rest-spread",
8-
"@babel/plugin-proposal-class-properties"
9-
]
2+
"presets": ["@babel/preset-env", "@babel/preset-react"],
3+
"plugins": ["@babel/plugin-proposal-object-rest-spread", "@babel/plugin-proposal-class-properties"]
104
}

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.snap

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"env": {
44
"jest": true
55
},
6-
"parser": "babel-eslint"
6+
"parser": "babel-eslint",
7+
"plugins": ["prettier"]
78
}

.github/FUNDING.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# These are supported funding model platforms
2+
3+
github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
4+
patreon: probablyup
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: # Replace with a single Ko-fi username
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/workflows/ci.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on: [push, pull_request_target]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- name: Setup node
12+
uses: actions/setup-node@v1
13+
with:
14+
node-version: 12
15+
16+
- name: Get yarn cache directory path
17+
id: yarn-cache-dir-path
18+
run: echo "::set-output name=dir::$(yarn cache dir)"
19+
20+
- uses: actions/cache@v1
21+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
22+
with:
23+
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
24+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
25+
restore-keys: |
26+
${{ runner.os }}-yarn-
27+
28+
- name: Install modules
29+
run: yarn --pure-lockfile
30+
31+
- name: Run tests
32+
run: yarn test
Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
# For most projects, this workflow file will not need changing; you simply need
2+
# to commit it to your repository.
3+
#
4+
# You may wish to alter this file to override the set of languages analyzed,
5+
# or to provide custom queries or build logic.
6+
#
7+
# ******** NOTE ********
8+
# We have attempted to detect the languages in your repository. Please check
9+
# the `language` matrix defined below to confirm you have the correct set of
10+
# supported CodeQL languages.
11+
#
12+
name: "CodeQL"
13+
14+
on:
15+
push:
16+
branches: [main]
17+
pull_request:
18+
# The branches below must be a subset of the branches above
19+
branches: [main]
20+
schedule:
21+
- cron: "30 21 * * 0"
22+
23+
jobs:
24+
analyze:
25+
name: Analyze
26+
runs-on: ubuntu-latest
27+
permissions:
28+
actions: read
29+
contents: read
30+
security-events: write
31+
32+
strategy:
33+
fail-fast: false
34+
matrix:
35+
language: ["javascript"]
36+
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
37+
# Learn more:
38+
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
39+
40+
steps:
41+
- name: Checkout repository
42+
uses: actions/checkout@v2
43+
44+
# Initializes the CodeQL tools for scanning.
45+
- name: Initialize CodeQL
46+
uses: github/codeql-action/init@v1
47+
with:
48+
languages: ${{ matrix.language }}
49+
# If you wish to specify custom queries, you can do so here or in a config file.
50+
# By default, queries listed here will override any specified in a config file.
51+
# Prefix the list here with "+" to use these queries and those in the config file.
52+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
53+
54+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55+
# If this step fails, then you should remove it and run the build manually (see below)
56+
- name: Autobuild
57+
uses: github/codeql-action/autobuild@v1
58+
59+
# ℹ️ Command-line programs to run using the OS shell.
60+
# 📚 https://git.io/JvXDl
61+
62+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63+
# and modify them (or add more) to build your code if your project
64+
# uses a compiled language
65+
66+
#- run: |
67+
# make bootstrap
68+
# make release
69+
70+
- name: Perform CodeQL Analysis
71+
uses: github/codeql-action/analyze@v1

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
node_modules
2+
yarn-error.log

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
66
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
77

8-
## [7.0.4](https://github.com/styled-components/jest-styled-components/compare/v7.0.2...v7.0.3) - 2020-08-19
8+
## [7.0.4](https://github.com/styled-components/jest-styled-components/compare/v7.0.3...v7.0.4) - 2021-04-18
99

1010
- support styled-components v6
1111

package.json

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jest-styled-components",
3-
"version": "7.0.4",
3+
"version": "7.0.5",
44
"description": "Jest utilities for Styled Components",
55
"main": "./src/index.js",
66
"typings": "./typings/index.d.ts",
@@ -17,12 +17,11 @@
1717
"author": "Michele Bertoli",
1818
"license": "MIT",
1919
"scripts": {
20-
"test": "yarn test:web && yarn test:native && yarn test:preact && yarn test:ts",
21-
"test:web": "jest",
20+
"test": "yarn test:web && yarn test:native && yarn test:preact",
21+
"test:web": "jest --color",
2222
"test:web:watch": "jest --watch",
23-
"test:native": "jest --config .jest.native.json",
24-
"test:preact": "jest --config .jest.preact.json",
25-
"test:ts": "tsc --strict ./typings/index.d.ts"
23+
"test:native": "jest --color --config .jest.native.json",
24+
"test:preact": "jest --color --config .jest.preact.json"
2625
},
2726
"devDependencies": {
2827
"@babel/core": "^7.0.0",
@@ -33,29 +32,29 @@
3332
"@testing-library/react": "^9.3.2",
3433
"babel-core": "^7.0.0-bridge.0",
3534
"babel-eslint": "^10.0.1",
36-
"babel-jest": "^24.8.0",
35+
"babel-jest": "^26.0.0",
3736
"enzyme": "^3.6.0",
3837
"enzyme-adapter-preact-pure": "^2.2.0",
3938
"enzyme-adapter-react-16": "^1.5.0",
4039
"enzyme-to-json": "^3.3.1",
4140
"eslint": "^6.6.0",
4241
"eslint-config-prettier": "^6.5.0",
42+
"eslint-plugin-prettier": "^3.4.0",
4343
"husky": "^3.0.9",
44-
"jest": "^24.8.0",
44+
"jest": "^26.0.0",
4545
"lint-staged": "^9.4.2",
4646
"preact": "^10.0.0-beta.2",
4747
"preact-render-to-json": "^3.6.6",
48-
"prettier": "^1.18.2",
48+
"prettier": "^2.3.2",
4949
"react": "^16.8.0",
5050
"react-dom": "^16.8.0",
5151
"react-is": "^16.8.6",
52-
"react-native": "^0.61.4",
52+
"react-native": "^0.62.3",
5353
"react-test-renderer": "^16.8.0",
54-
"styled-components": "^5.0.0",
55-
"typescript": "^3.0.3"
54+
"styled-components": "^5.0.0"
5655
},
5756
"dependencies": {
58-
"css": "^2.2.4"
57+
"css": "^3.0.0"
5958
},
6059
"peerDependencies": {
6160
"styled-components": ">= 5"
@@ -85,5 +84,8 @@
8584
"<rootDir>/test/native",
8685
"<rootDir>/test/preact"
8786
]
87+
},
88+
"engines": {
89+
"node": ">= 12"
8890
}
8991
}

0 commit comments

Comments
 (0)