Skip to content

Commit

Permalink
stash
Browse files Browse the repository at this point in the history
  • Loading branch information
adamwong246 committed Apr 15, 2023
1 parent 448e46d commit 6b38d64
Show file tree
Hide file tree
Showing 50 changed files with 1,587 additions and 8 deletions.
2 changes: 1 addition & 1 deletion bazel.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ export default new ITProject({
outdir: "js-bazel",
buildMode: "on",
runMode: true,
collateMode: "watch+serve"
collateMode: "off"
});
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hello artificer
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
testArtiFactory =>,./before.txt

Suite:,a classical react component, bundled with esbuild and tested with puppeteer,[object Object]

Given: AnEmptyState
testArtiFactory =>,./screencap.mp4
testArtiFactory =>,./beforeEachScreenshot.png
Then:,ThePropsIs: [object Object]
Then:,TheStatusIs: [object Object]

Given: AnEmptyState
testArtiFactory =>,./screencap.mp4
testArtiFactory =>,./beforeEachScreenshot.png
When:,IClickTheButton: undefined
Then:,ThePropsIs: [object Object]
Then:,TheStatusIs: [object Object]

Given: AnEmptyState
testArtiFactory =>,./screencap.mp4
testArtiFactory =>,./beforeEachScreenshot.png
When:,IClickTheButton: undefined
Then:,ThePropsIs: [object Object]
Then:,TheStatusIs: [object Object]

Given: AnEmptyState
testArtiFactory =>,./screencap.mp4
testArtiFactory =>,./beforeEachScreenshot.png
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
Then:,TheStatusIs: [object Object]

Given: AnEmptyState
testArtiFactory =>,./screencap.mp4
testArtiFactory =>,./beforeEachScreenshot.png
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
Then:,TheStatusIs: [object Object]
Then:,IAmAGenius: undefined
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/-1/before.txt
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/0/screencap.mp4
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/0/beforeEachScreenshot.png
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/1/screencap.mp4
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/1/beforeEachScreenshot.png
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/2/screencap.mp4
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/2/beforeEachScreenshot.png
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/3/screencap.mp4
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/3/beforeEachScreenshot.png
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/4/screencap.mp4
/js-bazel/myTests/ClassicalReact/ClassicalComponent.esbuild-puppeteer.test.ts/4/beforeEachScreenshot.png
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
{
"name": "a classical react component, bundled with esbuild and tested with puppeteer",
"givens": [
{
"name": "AnEmptyState",
"whens": [],
"thens": [
{
"name": "ThePropsIs: [object Object]"
},
{
"name": "TheStatusIs: [object Object]"
}
],
"features": []
},
{
"name": "AnEmptyState",
"whens": [
{
"name": "IClickTheButton: undefined"
}
],
"thens": [
{
"name": "ThePropsIs: [object Object]"
},
{
"name": "TheStatusIs: [object Object]"
}
],
"features": []
},
{
"name": "AnEmptyState",
"whens": [
{
"name": "IClickTheButton: undefined"
}
],
"thens": [
{
"name": "ThePropsIs: [object Object]"
},
{
"name": "TheStatusIs: [object Object]"
}
],
"features": []
},
{
"name": "AnEmptyState",
"whens": [
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
}
],
"thens": [
{
"name": "TheStatusIs: [object Object]"
}
],
"features": [
"hello"
]
},
{
"name": "AnEmptyState",
"whens": [
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
}
],
"thens": [
{
"name": "TheStatusIs: [object Object]"
},
{
"name": "IAmAGenius: undefined"
}
],
"features": [
"hello"
]
}
],
"fails": []
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

Suite:,foo,[object Object]

Given: AnEmptyState
When:,IClickTheButton: undefined
Then:,ThePropsIs: [object Object]
Then:,TheStatusIs: [object Object]

Given: AnEmptyState
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
Then:,TheStatusIs: [object Object]


Given: AnEmptyState
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
When:,IClickTheButton: undefined
Then:,TheStatusIs: [object Object]

Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
{
"name": "foo",
"givens": [
{
"name": "AnEmptyState",
"whens": [
{
"name": "IClickTheButton: undefined"
}
],
"thens": [
{
"name": "ThePropsIs: [object Object]"
},
{
"name": "TheStatusIs: [object Object]"
}
],
"features": []
},
{
"name": "AnEmptyState",
"whens": [
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
}
],
"thens": [
{
"name": "TheStatusIs: [object Object]",
"error": true
}
],
"errors": {
"generatedMessage": true,
"code": "ERR_ASSERTION",
"actual": {
"type": "pre",
"props": {
"id": "theState"
},
"children": [
"{\"count\":3}"
]
},
"expected": {
"type": "pre",
"props": {
"id": "theState"
},
"children": [
"{\"count\":33}"
]
},
"operator": "deepEqual"
},
"features": []
},
{
"name": "AnEmptyState",
"whens": [
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
},
{
"name": "IClickTheButton: undefined"
}
],
"thens": [
{
"name": "TheStatusIs: [object Object]",
"error": true
}
],
"errors": {
"generatedMessage": true,
"code": "ERR_ASSERTION",
"actual": {
"type": "pre",
"props": {
"id": "theState"
},
"children": [
"{\"count\":3}"
]
},
"expected": {
"type": "pre",
"props": {
"id": "theState"
},
"children": [
"{\"count\":333}"
]
},
"operator": "deepEqual"
},
"features": []
}
],
"fails": []
}
42 changes: 42 additions & 0 deletions js-bazel/myTests/Rectangle/Rectangle.test.ts/log.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@

Suite:,Testing the Rectangle class,[object Object]

Given: Default
When:,setWidth: 4
When:,setHeight: 9
Then:,getWidth: 4
Then:,getHeight: 9

Given: WidthOfOneAndHeightOfOne
When:,setWidth: 4
When:,setHeight: 5
Then:,getWidth: 4
Then:,getHeight: 5
Then:,area: 20
Then:,AreaPlusCircumference: 38

Given: WidthOfOneAndHeightOfOne
When:,setHeight: 4
When:,setWidth: 3
Then:,area: 12

Given: WidthOfOneAndHeightOfOne
When:,setHeight: 3
When:,setWidth: 4
When:,setHeight: 5
When:,setWidth: 6
Then:,area: 30
Then:,circumference: 22

Given: WidthOfOneAndHeightOfOne
When:,setHeight: 3
When:,setWidth: 4
Then:,getHeight: 3
Then:,getWidth: 4
Then:,area: 12
Then:,circumference: 14

Given: WidthOfOneAndHeightOfOne
When:,setHeight: 33
When:,setWidth: 34
Then:,getHeight: 33
Loading

0 comments on commit 6b38d64

Please sign in to comment.