Skip to content

G-Rath/fold-call-blocks-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4a2354d · Apr 7, 2021

History

65 Commits
Oct 27, 2019
Apr 7, 2021
May 22, 2019
Oct 27, 2019
Oct 27, 2019
Apr 7, 2021
Oct 27, 2019
Oct 27, 2019
Oct 27, 2019
Oct 27, 2019

Repository files navigation

fold-call-blocks plugin

IntelliJ plugin that lets you fold call blocks like region tags, using the first argument of said call blocks as the placeholder text:

const fn = <T>(p: T) => p;

describe('top-level', () => {
  describe('when passed a number', () => {
    const value = 1;

    it('returns a number', () => {
      expect(typeof fn(value)).toBe('number');
    });

    it('returns the passed value', () => {
      expect(fn(value)).toBe(value);
    });
  });
  describe('when passed a boolean', () => {
    const value = true;

    it('returns a boolean', () => {
      expect(typeof fn(value)).toBe('boolean');
    });

    it('returns the passed value', () => {
      expect(fn(value)).toBe(value);
    });
  });
  describe('when passed a string', () => {
    const value = "hello world";

    it('returns a string', () => {
      expect(typeof fn(value)).toBe('string');
    });

    it('returns the passed value', () => {
      expect(fn(value)).toBe(value);
    });
  });
});

folding example

About

IntelliJ plugin that lets you fold methods in Ruby & Javascript

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages