Skip to content

Commit b646876

Browse files
Run playwright tests pointed to custom app container (#5)
* feat: add custom app dockerized to be run * style: add linter for markdown * chore: remove example hello app directory * chore: rename example-project to example-hello-app-tests directory * chore: add npmrc file to ignore files on publish * chore: remove not needed lock package * chore: add new ignore rules * chore: update new folders to config files * chore: update to testcontiners-node v1.8.2 * feat: add pointed to example hello world container app tests * docs: add pointed to example hello world container app tests * chore: add operating system ignored files * fix: replace strategy to talk with external app container * chore: check wait strategy * fix: fix linter * chore: add lint stage in pre commit * This is a blank commit * fix: set again wait strategy * fix: fix lit stage script run * chore: update node nvmrc version * chore: update node nvmrc version * feat: execute test vs a pulled image * docs: modify better explanation to run tests pointing to an app
1 parent 3d9cf48 commit b646876

16 files changed

+1120
-319
lines changed

.gitignore

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1+
# Operating system
2+
.DS_Store
3+
src/.DS_Store
4+
15
# IntelliJ IDEA
26
.idea
7+
.vscode
38

49
# Autogenerated
510
node_modules
611
build
712
example-reports
813
example-results
914
tsconfig.build.tsbuildinfo
15+
coverage
1016

1117
# Example project
12-
src/example-project/package-lock.json
13-
src/example-project/test-results
14-
src/example-project/test-results
18+
src/example-hello-world-app-tests/package-lock.json

.markdownlint.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"default": true,
3+
"MD007": { "indent": 2 },
4+
"MD013": { "line_length": 120 },
5+
"no-hard-tabs": false,
6+
"whitespace": false
7+
}

.npmrc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package-lock.json
2+
tsconfig*
3+
jest*
4+
.prettier*
5+
.nvmrc
6+
.markdownlint.json
7+
.editorconfig
8+
.eslint*
9+
.gitignore
10+
src/example-hello-world-app-test/

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
20.11.1
1+
20.13.1

README.md

Lines changed: 158 additions & 74 deletions
Large diffs are not rendered by default.

jest.config.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,11 @@ import type { Config } from "jest";
22

33
const config: Config = {
44
preset: "ts-jest",
5-
modulePathIgnorePatterns: ["<rootDir>/src/example-project/", "<rootDir>/build/"],
5+
modulePathIgnorePatterns: [
6+
"<rootDir>/src/example-hello-world-app/",
7+
"<rootDir>/src/example-hello-world-app-tests/",
8+
"<rootDir>/build/",
9+
],
610
};
711

812
export default config;

0 commit comments

Comments
 (0)