@xtest/spec
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published
import { Spec, Contract } from '@xtest/core';

interface Data {
  id?: number;
  name?: string;
  User?: Contract;
}

const spec = new Spec<Data>();

spec.before(async (ctx) => {
  ctx.set('id', 100);
  ctx.set('web3', context.web3);
  ctx.set('User', await context.require({ src: './src/contracts/User' }));
});

export default spec;

Readme

Keywords

none

Package Sidebar

Install

npm i @xtest/spec

Weekly Downloads

10

Version

1.3.2

License

MIT

Unpacked Size

83.9 kB

Total Files

78

Last publish

Collaborators

  • xpepermint