Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
a034c59
Merge pull request #1 from iliterobotics/ProgrammingInitial
GlebBabahov Dec 10, 2020
1a77b79
Change Upcoming Events to Recent Events
GlebBabahov Dec 10, 2020
8a4938a
Resolved merge conflict with package-lock.json
DaveSauce Dec 13, 2020
5be2042
changed to 2020-21
agrimreaper49 Dec 16, 2020
f48b5c5
Catapult comp added to HostedEvents.js
agrimreaper49 Dec 16, 2020
313b0a7
readded virtual
agrimreaper49 Dec 17, 2020
cc28402
Merge pull request #2 from iliterobotics/gleb-recent-events
DaveSauce Dec 17, 2020
b164404
Merge branch 'master' into agrim-catapult
agrimreaper49 Dec 17, 2020
8249988
quick fixes
agrimreaper49 Jan 7, 2021
60fbe95
new folder is added for the catapult comp
agrimreaper49 Jan 7, 2021
9289fab
images fixed for now
agrimreaper49 Jan 7, 2021
fcddba3
Changed .container__content max_width to 1400px instead of 80%
GlebBabahov Jan 13, 2021
5e87627
Merge pull request #3 from iliterobotics/gleb-body-width
DaveSauce Jan 13, 2021
102d022
WIP
agrimreaper49 Jan 19, 2021
f462e00
final changes, awaiting PR
agrimreaper49 Jan 28, 2021
c9f695d
Merge branch 'master' into agrim-catapult
agrimreaper49 Jan 28, 2021
6131630
Add unit test dependencies
oconnelc Jan 31, 2021
d5d36a9
Add unit test config file
oconnelc Jan 31, 2021
5be7086
Add configuration files for unit tests
oconnelc Jan 31, 2021
0f749c4
Add additional unit test config to get jest to work
oconnelc Jan 31, 2021
69b9747
Add a snapshot unit test for the history page
oconnelc Jan 31, 2021
73b4913
Add unit test capabilities
oconnelc Jan 31, 2021
9d90565
Create a PR template
oconnelc Jan 31, 2021
2542d4d
Merge pull request #5 from iliterobotics/PR_Template
oconnelc Jan 31, 2021
23e2a51
pr ready changed virtual season to 2019-2020 season
agrimreaper49 Feb 10, 2021
6bae337
Merge branch 'master' into agrim-catapult
agrimreaper49 Feb 10, 2021
b898a7e
Merge pull request #4 from iliterobotics/GatsbyUnitTest
DaveSauce Feb 11, 2021
d98bede
Merge pull request #7 from iliterobotics/agrim-catapult
oconnelc Feb 13, 2021
eba0a9e
Create a function to build the iframe for youtube video
oconnelc Jan 31, 2021
a2ecfef
Change the fullscreen flag from boolean to string
oconnelc Jan 31, 2021
a6f12c1
Merge pull request #6 from iliterobotics/HistoryFullScreenVideos
DaveSauce Feb 18, 2021
09e1332
Make the About ILite dropdown disappear on mouse exit
oconnelc Feb 19, 2021
19cd992
Make the Outreach dropdown disappear on mouseexit
oconnelc Feb 19, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--- Provide a general summary of your changes in the Title above -->

# Description
<!--- Describe your changes in detail -->

# Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

# How has this been tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->

# Screenshots (if appropriate):

# Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

# Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,7 @@ To run the site locally: `yarn develop`
#### Note:

Do not write in any files in the `/public` directory. They are being generated by Gatsby and will be written over.


# Unit Testing
This project uses Jest. To run: ```npm test```
1 change: 1 addition & 0 deletions __mocks__/file-mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "test-file-stub"
27 changes: 27 additions & 0 deletions __mocks__/gatsby.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const React = require("react")
const gatsby = jest.requireActual("gatsby")

module.exports = {
...gatsby,
graphql: jest.fn(),
Link: jest.fn().mockImplementation(
// these props are invalid for an `a` tag
({
activeClassName,
activeStyle,
getProps,
innerRef,
partiallyActive,
ref,
replace,
to,
...rest
}) =>
React.createElement("a", {
...rest,
href: to,
})
),
StaticQuery: jest.fn(),
useStaticQuery: jest.fn(),
}
5 changes: 5 additions & 0 deletions jest-preprocess.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const babelOptions = {
presets: ["babel-preset-gatsby"],
}

module.exports = require("babel-jest").createTransformer(babelOptions)
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
transform: {
"^.+\\.jsx?$": `<rootDir>/jest-preprocess.js`,
},
moduleNameMapper: {
".+\\.(css|styl|less|sass|scss)$": `identity-obj-proxy`,
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$": `<rootDir>/__mocks__/file-mock.js`,
},
testPathIgnorePatterns: [`node_modules`, `\\.cache`, `<rootDir>.*/public`],
transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],
globals: {
__PATH_PREFIX__: ``,
},
testURL: `http://localhost`,
setupFiles: [`<rootDir>/loadershim.js`],
}
3 changes: 3 additions & 0 deletions loadershim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
global.___loader = {
enqueue: jest.fn(),
}
Loading