The website frontend for autograder.io, implemented using Vue and Typescript. For information about contributing to Autograder.io, see our contributing guide.
Follow the dev stack setup tutorial for the autograder-full-stack repo.
The unit tests currently support Node.js version 16 (newer versions may work too). You can install this version with NVM by running:
nvm install 16
To run the unit tests (with coverage):
npm test
In addition to the items listed here, all source code must follow our Typescript/Vue coding standards.
Run npm run build
to check for some style issues using TSLint. All code must be free of TSLint errors. This command should also be treated as the single source of truth for type checking, as different editor plugins have various shortcomings.
data-testid=xxx
attribute
and wrapper.find('[data-testid=xxx]')
for this purpose. Use snake_case for
data-testid
values.@Prop
, make a deep copy of that object and modify the copy.@Prop
input, do NOT copy the object.update_
function,
make a deep copy of the object.deep_copy
function in src/utils.ts
to make deep copies of
class instances that have a constructor and/or member functions. For other
objects, JSON.parse(JSON.stringify(...))
is the preferred approach.