Skip to content

Instantly share code, notes, and snippets.

@hokaccha
Last active November 7, 2015 08:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hokaccha/4964646e3902c88b1bee to your computer and use it in GitHub Desktop.
Save hokaccha/4964646e3902c88b1bee to your computer and use it in GitHub Desktop.
/** @test {MyClass} */
describe('MyClass', () => {
/** @test {MyClass#foo} */
describe('MyClass#foo', () => {
it('should be ...');
});
/** @test {MyClass#bar} */
describe('MyClass#bar', () => {
it('should be ...');
});
});
@hokaccha
Copy link
Author

hokaccha commented Nov 7, 2015

@testdescribeの内容がかぶることが多いので@test書かなくてもESDocが空気読んでくれると嬉しい。

最低限、@test {MyClass}だけ書いとけば'MyClass#foo'とかはdescribeに指定するテキストから読み取るとかでもいいかも。

@h13i32maru
Copy link

おーーー、なるほどなるほど。雑な感じならできそうですが、真面目にするならかなりハードですね。でも面白そう。これできれば圧倒的に関連付けがらくになりますね。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment