Skip to content
The open LMS by Instructure, Inc.
Branch: master
Clone or download
vimalloc New mocking foundation for A2 student view tests
Utilizing https://www.apollographql.com/docs/graphql-tools/mocking/

Benefits of this new approach:
  - Query, propTypes, and mocked data all exist in the same location, so
    it becomes much easier to modify.
  - You can easily mock data nested deeply in data without needing to
    manually drill down into it.
  - The mocked data comes from a FRD graphql query, so you cannot
    accidently put invalid fields into the testing data (for example,
    null for a string that is marked as not null).
  - Can save complex overrides into reusable pieces (graded submission)

Fixes COMMS-2224

Test Plan:
  - Jenkins passes

Change-Id: Ib6c3c6f3b3c16b8829d89061b41d8a4d308eb0ed
Reviewed-on: https://gerrit.instructure.com/201591
Tested-by: Jenkins
Reviewed-by: Steven Burnett <sburnett@instructure.com>
QA-Review: Landon Gilbert-Bland <lbland@instructure.com>
Product-Review: Landon Gilbert-Bland <lbland@instructure.com>
Latest commit ea769fb Jul 12, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Update auto_assign.yml Jun 10, 2019
Gemfile.d bump shoulda-matchers to 4.1.0 Jul 17, 2019
app New mocking foundation for A2 student view tests Jul 20, 2019
bin spec: add scripts to publish to public pact broker Oct 19, 2018
build Fix yarn for initial docker-compose build Jun 17, 2019
client_apps get stuff ready to use lodash instead of underscore Jul 15, 2019
config replace content_for :page_title or :title w/ provide Jul 17, 2019
db/migrate add mobile-global-nav logo brand variable Jul 17, 2019
doc Update API change log for 2019-07-31 Jul 19, 2019
docker-compose spec: update verion of chromedriver to new version of chrome May 31, 2019
frontend_build Add quizzes_bundle to size exception list. Jun 21, 2019
gems more easy/safe stuff split out from streaming commit Jul 19, 2019
hooks fix pre-commit hook with unfixable eslint error Nov 27, 2018
jest don’t count unread_count or dashcard indicators against newRelic load… Jul 16, 2019
lib Add fields and filter for mobile submission list to graphql Jul 19, 2019
packages Make alt text help text focusable Jul 17, 2019
pact Include context_name in planner item response Aug 29, 2018
public Replace instructure_documents plugin for new rce Jul 18, 2019
script add permissions variable expansion Jun 12, 2019
spec spec: better loading for assignments page Jul 19, 2019
.bowerrc introduced bower to manage js dependencies Dec 13, 2013
.codeclimate.yml disable ESLint in code climate Feb 14, 2017
.dockerignore fix canvas-planner docker build process Apr 17, 2018
.editorconfig Add EditorConfig configuration file to help maintain code style Nov 15, 2016
.eslintignore ESLint standardization Nov 6, 2018
.eslintrc.js add react-hooks linting and update react dep Jun 26, 2019
.gitignore allow packages to commit lib files Jul 17, 2019
.i18nignore bump rails 3 to github branch for ruby 2.2 compatibility Feb 18, 2015
.i18nrc upgrade to node 6 Aug 9, 2016
.lintstagedrc.js Add precommit hook for auto fixing files Nov 27, 2018
.npmrc fix brand config previewing and skipping Oct 27, 2015
.nvmrc Bump to Node 10 Mar 22, 2019
.prettierrc Add .prettierrc so it matches our existing code Nov 3, 2017
.prettierwhitelist.js eslint —fix page_views.js Jun 4, 2019
.rubocop.yml spec: remove ExpectChange and TimesMap Aug 31, 2018
.selinimumignore Revert and bring InstIcons into Canvas Nov 29, 2016
.stylelintrc Lint for css that will break RTL Oct 17, 2018
.travis.yml more travis builds Feb 10, 2014
CONTRIBUTING.md Add CLA FAQ from legal Jan 22, 2018
COPYRIGHT Initial commit. Feb 1, 2011
Dockerfile Fix yarn for initial docker-compose build Jun 17, 2019
Dockerfile-production Update bundler in Dockerfile May 22, 2019
Dockerfile.githook Add precommit hook for auto fixing files Nov 27, 2018
Gemfile
Jenkinsfile Abort in progress git-rebase operations in ci Jun 5, 2019
LICENSE Initial commit. Feb 1, 2011
README.md Update README.md since Canvas is still modern Dec 15, 2016
Rakefile remove dead parallelized specs task Nov 10, 2016
babel.config.js upgrade webpack to v4 May 16, 2019
bower.json Move k5uplodaer to /packages May 10, 2019
code_of_conduct.md contributor code of conduct Dec 23, 2014
config.ru remove extra logging to debug Passenger connection orphan issue Jul 14, 2017
docker-compose.jenkins.yml update rce-api version on jenkins second attempt Jul 19, 2019
docker-compose.new-jenkins.yml Smoke test docker image Apr 5, 2019
docker-compose.override.yml Add precommit hook for auto fixing files Nov 27, 2018
docker-compose.yml Use redis:alpine Jul 31, 2017
gulpfile.js Don’t load a 2nd copy of jQuery on mobile login Jul 17, 2019
issue_template.md Make issue template disclaimer a comment May 1, 2018
jest.config.js don’t count unread_count or dashcard indicators against newRelic load… Jul 16, 2019
karma.conf.js upgrade webpack to v4 May 16, 2019
package.json New mocking foundation for A2 student view tests Jul 20, 2019
schema.graphql Add fields and filter for mobile submission list to graphql Jul 19, 2019
webpack.config.js Opt our js build tooling dirs into prettier Nov 7, 2018
webpack.test.config.js upgrade webpack to v4 May 16, 2019
yarn.lock New mocking foundation for A2 student view tests Jul 20, 2019

README.md

You can’t perform that action at this time.